Do the post-pregnancy breast growth for Biotech births.

This commit is contained in:
lutepickle 2022-11-24 07:12:30 -08:00
parent fe20e9d78b
commit 86aef06981
1 changed files with 10 additions and 0 deletions

View File

@ -110,6 +110,16 @@ namespace RJW_Menstruation
}
}
[HarmonyPatch(typeof(PregnancyUtility), nameof(PregnancyUtility.ApplyBirthOutcome))]
public class ApplyBirthOutcome_Patch
{
public static void PostFix(Thing birtherThing)
{
if (birtherThing is Pawn pawn && !pawn.health.Dead)
pawn.GetBreastComp()?.GaveBirth();
}
}
[HarmonyPatch(typeof(PregnancyUtility), nameof(PregnancyUtility.TryTerminatePregnancy))]
public class TryTerminatePregnancy_Patch
{