From 7f6309466ab4b2ed3bcd45e9d6f8ab6fb728db2f Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Fri, 10 May 2024 21:06:51 -0700 Subject: [PATCH] Log a message if an egg would implant but children are disabled --- .../RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index ae03413..846a19b 100644 --- a/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -1390,6 +1390,12 @@ namespace RJW_Menstruation deadeggs.Add(egg); continue; } + else if (ModsConfig.BiotechActive && !Find.Storyteller.difficulty.ChildrenAllowed) + { + if (Configurations.Debug) Log.Message($"Could not implant {Pawn}'s egg due to children being disabled"); + deadeggs.Add(egg); + continue; + } else if (Rand.Chance(Configurations.ImplantationChance * ImplantChance * InterspeciesImplantFactor(egg.fertilizer))) { try