mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
lactation precepts
This commit is contained in:
parent
edada8ff48
commit
5752647b4f
10 changed files with 231 additions and 17 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue