mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
fixed preg projs
This commit is contained in:
parent
406d336a25
commit
711be3c6bb
7 changed files with 201 additions and 1 deletions
|
@ -0,0 +1,15 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
using UnityEngine;
|
||||
|
||||
namespace CRIAPregnancy
|
||||
{
|
||||
public class CompProperties_LastPregnancy : CompProperties
|
||||
{
|
||||
}
|
||||
}
|
18
CRIAPregnancy/Source/Comps/Comp_LastPregnancy.cs
Normal file
18
CRIAPregnancy/Source/Comps/Comp_LastPregnancy.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
using UnityEngine;
|
||||
|
||||
namespace CRIAPregnancy
|
||||
{
|
||||
public class Comp_LastPregnancy : ThingComp
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
31
CRIAPregnancy/Source/Thoughts/ThoughtWorker_Pregnancy.cs
Normal file
31
CRIAPregnancy/Source/Thoughts/ThoughtWorker_Pregnancy.cs
Normal file
|
@ -0,0 +1,31 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
using UnityEngine;
|
||||
|
||||
namespace CRIAPregnancy
|
||||
{
|
||||
class ThoughtWorker_Pregnancy : ThoughtWorker_Precept
|
||||
{
|
||||
|
||||
public static bool CanBePregnant(Pawn p)
|
||||
{
|
||||
if(p.RaceHasPregnancy()
|
||||
&& Genital_Helper.has_vagina(p)
|
||||
&& p.health.capacities.GetLevel(xxx.reproduction) > 0)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
protected override ThoughtState ShouldHaveThought(Pawn p)
|
||||
{
|
||||
if (p)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue