mirror of
				https://gitgud.io/amevarashi/rjw-sexperience-ideology.git
				synced 2024-08-15 00:43:19 +00:00 
			
		
		
		
	Drafted Pregnancy Precept
This commit is contained in:
		
							parent
							
								
									bb17e94418
								
							
						
					
					
						commit
						8f4ebb749a
					
				
					 6 changed files with 322 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -0,0 +1,29 @@
 | 
			
		|||
using RimWorld;
 | 
			
		||||
using Verse;
 | 
			
		||||
using rjw;
 | 
			
		||||
 | 
			
		||||
namespace RJWSexperience.Ideology.Ideology.Precept_Workers
 | 
			
		||||
{
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// thought worker for a thought that is active when a certain hediff is present, and who's stage depends on the ether state of the pawn 
 | 
			
		||||
    /// Shamelessly taken from: https://github.com/Tachyonite/Pawnmorpher/blob/master/Source/Pawnmorphs/Esoteria/Thoughts/ThoughtWorker_EtherHediff.cs
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    public class ThoughtWorker_Precept_NonPregnant : ThoughtWorker_Precept
 | 
			
		||||
    {
 | 
			
		||||
        /// <summary>Gets the current thought state of the given pawn.</summary>
 | 
			
		||||
        /// <param name="p">The pawn for whom the thoughts are generated.</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        protected override ThoughtState ShouldHaveThought(Pawn p)
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
            var pregnancy = rjw.PregnancyHelper.GetPregnancy(p);
 | 
			
		||||
 | 
			
		||||
            if (pregnancy == null)
 | 
			
		||||
            {
 | 
			
		||||
                return ThoughtState.Inactive;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return ThoughtState.ActiveAtStage(0);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,28 @@
 | 
			
		|||
using RimWorld;
 | 
			
		||||
using Verse;
 | 
			
		||||
using rjw;
 | 
			
		||||
 | 
			
		||||
namespace RJWSexperience.Ideology.Ideology.Precept_Workers
 | 
			
		||||
{
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// thought worker for a thought that is active when a certain hediff is present, and who's stage depends on the ether state of the pawn 
 | 
			
		||||
    /// Shamelessly taken from: https://github.com/Tachyonite/Pawnmorpher/blob/master/Source/Pawnmorphs/Esoteria/Thoughts/ThoughtWorker_EtherHediff.cs
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    public class ThoughtWorker_Precept_NonPregnant_Social : ThoughtWorker_Precept
 | 
			
		||||
    {
 | 
			
		||||
        /// <summary>Gets the current thought state of the given pawn.</summary>
 | 
			
		||||
        /// <param name="p">The pawn for whom the thoughts are generated.</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        protected override ThoughtState ShouldHaveThought(Pawn p)
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
            var pregnancy = rjw.PregnancyHelper.GetPregnancy(p);
 | 
			
		||||
 | 
			
		||||
            if (pregnancy != null)
 | 
			
		||||
            {
 | 
			
		||||
                return ThoughtState.Inactive;
 | 
			
		||||
            } else
 | 
			
		||||
                return ThoughtState.ActiveAtStage(0);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,30 @@
 | 
			
		|||
 | 
			
		||||
using RimWorld;
 | 
			
		||||
using Verse;
 | 
			
		||||
using rjw;
 | 
			
		||||
 | 
			
		||||
namespace RJWSexperience.Ideology.Ideology.Precept_Workers
 | 
			
		||||
{
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// thought worker for a thought that is active when a certain hediff is present, and who's stage depends on the ether state of the pawn 
 | 
			
		||||
    /// Shamelessly taken from: https://github.com/Tachyonite/Pawnmorpher/blob/master/Source/Pawnmorphs/Esoteria/Thoughts/ThoughtWorker_EtherHediff.cs
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    public class ThoughtWorker_Precept_Pregnant : ThoughtWorker_Precept
 | 
			
		||||
    {
 | 
			
		||||
        /// <summary>Gets the current thought state of the given pawn.</summary>
 | 
			
		||||
        /// <param name="p">The pawn for whom the thoughts are generated.</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        protected override ThoughtState ShouldHaveThought(Pawn p)
 | 
			
		||||
        {
 | 
			
		||||
            
 | 
			
		||||
            var pregnancy = rjw.PregnancyHelper.GetPregnancy(p);
 | 
			
		||||
 | 
			
		||||
            if (pregnancy == null)
 | 
			
		||||
            {
 | 
			
		||||
                return ThoughtState.Inactive;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return ThoughtState.ActiveAtStage(0);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,29 @@
 | 
			
		|||
using RimWorld;
 | 
			
		||||
using Verse;
 | 
			
		||||
using rjw;
 | 
			
		||||
 | 
			
		||||
namespace RJWSexperience.Ideology.Ideology.Precept_Workers
 | 
			
		||||
{ 
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// thought worker for a thought that is active when a certain hediff is present, and who's stage depends on the ether state of the pawn 
 | 
			
		||||
    /// Shamelessly taken from: https://github.com/Tachyonite/Pawnmorpher/blob/master/Source/Pawnmorphs/Esoteria/Thoughts/ThoughtWorker_EtherHediff.cs
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    public class ThoughtWorker_Precept_Pregnant_Social : ThoughtWorker_Precept
 | 
			
		||||
    {
 | 
			
		||||
        /// <summary>Gets the current thought state of the given pawn.</summary>
 | 
			
		||||
        /// <param name="p">The pawn for whom the thoughts are generated.</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
        protected override ThoughtState ShouldHaveThought(Pawn p)
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
            var pregnancy = rjw.PregnancyHelper.GetPregnancy(p);
 | 
			
		||||
 | 
			
		||||
            if (pregnancy == null)
 | 
			
		||||
            {
 | 
			
		||||
                return ThoughtState.Inactive;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            return ThoughtState.ActiveAtStage(0);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -32,8 +32,7 @@
 | 
			
		|||
  </PropertyGroup>
 | 
			
		||||
  <ItemGroup>
 | 
			
		||||
    <Reference Include="RJW">
 | 
			
		||||
      <HintPath>..\..\..\rjw\1.3\Assemblies\RJW.dll</HintPath>
 | 
			
		||||
      <Private>False</Private>
 | 
			
		||||
      <HintPath>..\..\..\rjw-vegapnk\1.3\Assemblies\RJW.dll</HintPath>
 | 
			
		||||
    </Reference>
 | 
			
		||||
    <Reference Include="System.Core" />
 | 
			
		||||
    <Reference Include="System.Data.DataSetExtensions" />
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue