Have humans lactate on birth with biotech

This commit is contained in:
lutepickle 2022-10-29 08:56:55 -07:00
parent 592cb361ad
commit 6e6579f1ff
3 changed files with 4 additions and 1 deletions

Binary file not shown.

View file

@ -72,7 +72,10 @@ namespace RJW_Menstruation
pawn.health.RemoveHediff(this);
HediffComp_Menstruation comp = this.GetMenstruationCompFromPregnancy();
if(comp != null) comp.Pregnancy = null;
pawn.GetBreastComp()?.GaveBirth();
HediffComp_Breast breastcomp = pawn.GetBreastComp();
if (ModsConfig.BiotechActive && xxx.is_human(pawn) && breastcomp != null)
pawn.health.AddHediff(HediffDefOf.Lactating);
breastcomp?.GaveBirth();
}
public string GetBabyInfo()