Do the post-pregnancy breast growth for Biotech births.
This commit is contained in:
parent
fe20e9d78b
commit
86aef06981
|
@ -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))]
|
[HarmonyPatch(typeof(PregnancyUtility), nameof(PregnancyUtility.TryTerminatePregnancy))]
|
||||||
public class TryTerminatePregnancy_Patch
|
public class TryTerminatePregnancy_Patch
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue