mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
hucow changes
This commit is contained in:
parent
064871641c
commit
5e807217bc
21 changed files with 373 additions and 23 deletions
|
@ -41,6 +41,16 @@ namespace CRIALactation
|
|||
p.health.AddHediff(lactating, Genital_Helper.get_breastsBPR(p));
|
||||
}
|
||||
|
||||
public static void StopBeingHucow(Pawn p)
|
||||
{
|
||||
p.health.RemoveHediff(p.health.hediffSet.GetFirstHediffOfDef(HediffDefOf_Milk.Hucow, false));
|
||||
}
|
||||
|
||||
public static bool IsHucow(Pawn p)
|
||||
{
|
||||
return p.health.hediffSet.HasHediff(HediffDefOf_Milk.Hucow);
|
||||
}
|
||||
|
||||
public static bool isMassageable(Pawn p)
|
||||
{
|
||||
CompInduceLactation c = p.TryGetComp<CompInduceLactation>();
|
||||
|
@ -52,5 +62,22 @@ namespace CRIALactation
|
|||
return false;
|
||||
|
||||
}
|
||||
|
||||
public static void ExtendLactationDuration(Pawn p)
|
||||
{
|
||||
|
||||
var drugLact = p.health.hediffSet.GetFirstHediffOfDef(HediffDefOf_Milk.Lactating_Drug);
|
||||
if(drugLact != null)
|
||||
{
|
||||
drugLact.TryGetComp<HediffComp_Disappears>().ticksToDisappear = 600000;
|
||||
}
|
||||
|
||||
var naturalLact = p.health.hediffSet.GetFirstHediffOfDef(HediffDefOf_Milk.Lactating_Natural);
|
||||
if (naturalLact != null)
|
||||
{
|
||||
naturalLact.TryGetComp<HediffComp_Disappears>().ticksToDisappear = 600000;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue