mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
hucow required precept
This commit is contained in:
parent
6731b17940
commit
1d846d98a6
6 changed files with 165 additions and 5 deletions
|
@ -71,13 +71,13 @@ namespace CRIALactation
|
|||
var drugLact = p.health.hediffSet.GetFirstHediffOfDef(HediffDefOf_Milk.Lactating_Drug);
|
||||
if(drugLact != null)
|
||||
{
|
||||
drugLact.TryGetComp<HediffComp_Disappears>().ticksToDisappear = 600000;
|
||||
drugLact.TryGetComp<HediffComp_Disappears>().ticksToDisappear = 1800000;
|
||||
}
|
||||
|
||||
var naturalLact = p.health.hediffSet.GetFirstHediffOfDef(HediffDefOf_Milk.Lactating_Natural);
|
||||
if (naturalLact != null)
|
||||
{
|
||||
naturalLact.TryGetComp<HediffComp_Disappears>().ticksToDisappear = 600000;
|
||||
naturalLact.TryGetComp<HediffComp_Disappears>().ticksToDisappear = 1800000;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace CRIALactation
|
|||
}
|
||||
|
||||
public static PreceptDef Lactating_Essential;
|
||||
public static PreceptDef Lactating_MandatoryHucow;
|
||||
//public static PreceptDef IdeoRole_Hucow;
|
||||
|
||||
}
|
||||
|
|
|
@ -16,8 +16,9 @@ namespace CRIALactation
|
|||
public override void Notify_MemberGenerated(Pawn pawn, Precept precept)
|
||||
{
|
||||
|
||||
if(precept.def == PreceptDefOf_Lactation.Lactating_Essential &&
|
||||
LactationUtility.HasMilkableBreasts(pawn))
|
||||
if((precept.def == PreceptDefOf_Lactation.Lactating_Essential
|
||||
|| precept.def == PreceptDefOf_Lactation.Lactating_MandatoryHucow)
|
||||
&& LactationUtility.HasMilkableBreasts(pawn))
|
||||
{
|
||||
|
||||
if (!LactationUtility.IsLactating(pawn))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue