mc for onslort 1.4

This commit is contained in:
c0ffee 2023-02-05 19:05:01 -08:00
parent 711a61a31a
commit 396cbb8c56
23 changed files with 237 additions and 43 deletions

View file

@ -30,6 +30,15 @@ namespace CRIALactation
base.Apply(target, dest);
Pawn pawn = target.Pawn;
LactationUtility.ExtendLactationDuration(pawn);
//let's expand the breasts too!
var breastList = pawn.GetBreastList();
if (!breastList.NullOrEmpty())
foreach (var breasts in breastList.Where(x => !x.TryGetComp<CompHediffBodyPart>().FluidType.NullOrEmpty()))
{
breasts.Severity += LactationSettings.hucowBreastSizeBonus; //this could make some big ones rediculous.
if (breasts.Severity < LactationSettings.hucowBreastSizeMinimum) breasts.Severity = LactationSettings.hucowBreastSizeMinimum;
}
}
}
}

View file

@ -22,8 +22,11 @@ namespace CRIALactation
public override string CompInspectStringExtra()
{
if((parent as Pawn).health?.hediffSet?.GetFirstHediffOfDef(HediffDefOf_Milk.InducingLactation) != null
&& (parent as Pawn).health.hediffSet.GetFirstHediffOfDef(HediffDefOf_Milk.InducingLactation).TryGetComp<HediffComp_LactationInduction>().canMassage())
//if ((parent as Pawn).health?.hediffSet?.GetFirstHediffOfDef(HediffDefOf_Milk.InducingLactation) != null
// && (parent as Pawn).health.hediffSet.GetFirstHediffOfDef(HediffDefOf_Milk.InducingLactation).TryGetComp<HediffComp_LactationInduction>().canMassage())
if ((parent as Pawn).health?.hediffSet?.GetFirstHediffOfDef(HediffDefOf_Milk.InducingLactation) != null
&& (parent as Pawn).health.hediffSet.GetFirstHediffOfDef(HediffDefOf_Milk.InducingLactationCooldown) == null)
{
return "Ready to stimulate breasts for lactation.";
}