From d6818b9834d36da579a44fe103f17cdc8b69acdd Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Wed, 24 Apr 2024 09:36:55 -0700 Subject: [PATCH] Little refactor in the HAR littersize patch --- .../HediffComps/HediffComp_PregeneratedBabies.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs b/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs index debbb75..38a25de 100644 --- a/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs +++ b/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs @@ -301,10 +301,10 @@ namespace RJW_Menstruation // So make it always consider the mother to have one baby public static class HAR_LitterSize_Undo { - public static void Postfix(ref int __result, Pawn mother) + public static void Postfix(ref int __result) { - if (Configurations.PregnancySource != Configurations.PregnancyType.Biotech || !Configurations.EnableBiotechTwins) return; - __result = 0; + if (Configurations.PregnancySource == Configurations.PregnancyType.Biotech && Configurations.EnableBiotechTwins) + __result = 0; return; } }