lactation precepts

This commit is contained in:
c0ffee12 2021-07-26 08:19:49 -07:00
parent edada8ff48
commit 5752647b4f
10 changed files with 231 additions and 17 deletions

View file

@ -1,4 +1,5 @@
using Milk;
using rjw;
using System;
using System.Collections.Generic;
using System.Linq;
@ -20,5 +21,22 @@ namespace CRIALactation
p.health.hediffSet.HasHediff(HediffDefOf_Milk.Lactating_Permanent, false) ||
p.health.hediffSet.HasHediff(HediffDefOf_Milk.Heavy_Lactating_Permanent, false);
}
public static bool HasMilkableBreasts(Pawn p)
{
if (Genital_Helper.has_breasts(p) && !Genital_Helper.has_male_breasts(p))
{
return true;
}
return false;
}
public static void StartLactating(Pawn p, bool natural)
{
Hediff lactating = HediffMaker.MakeHediff(natural ? HediffDefOf_Milk.Lactating_Natural : HediffDefOf_Milk.Lactating_Drug, p, null);
lactating.Severity = Rand.Value;
p.health.AddHediff(lactating, Genital_Helper.get_breastsBPR(p));
}
}
}