From da7284b9097200f6681b6e8935a3bfb958dc1e8c Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Wed, 11 Jan 2023 06:24:14 -0800 Subject: [PATCH] Make the HAR disabler conditional only on the configuration. There's too many birtherThing/geneticMother edge cases to make puzzling it out practical --- .../HediffComps/HediffComp_PregeneratedBabies.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs index c83daef..f830211 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs @@ -291,9 +291,7 @@ namespace RJW_Menstruation public static void Postfix(ref int __result, Pawn mother) { if (Configurations.PregnancySource != Configurations.PregnancyType.Biotech || !Configurations.EnableBiotechTwins) return; - // 'mother' is the genetic mother, but unless she's in labor at the same time the birtherthing is spitting out, this will work as intended - if (mother?.health.hediffSet.GetFirstHediff()?.TryGetComp()?.HasBaby ?? false) - __result = 0; + __result = 0; return; } }