diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/Biotech_Patch.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/Biotech_Patch.cs index b1e4f91..f9dc764 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/Biotech_Patch.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/Biotech_Patch.cs @@ -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 {