From a6afe494d8f27926ea90c60be032c284983a2dcb Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Sun, 29 Oct 2023 16:23:01 -0700 Subject: [PATCH] Add an implanted egg to deadeggs even if getting the comp fails --- .../RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index b316f5b..cf91bda 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -1472,11 +1472,9 @@ namespace RJW_Menstruation HediffComp_PregeneratedBabies comp = vanillaPreg.TryGetComp(); if (comp == null) Log.Warning($"Trying to add Biotech egg to {Pawn}'s pregnancy without a pregenerated baby comp: {vanillaPreg.GetUniqueLoadID()}"); else - { comp.AddNewBaby(Pawn, egg.fertilizer); - pregnant = true; - deadeggs.Add(egg); - } + pregnant = true; + deadeggs.Add(egg); break; case Hediff_MultiplePregnancy multiPreg: if (!Configurations.EnableHeteroOvularTwins) goto default;