Log a message if an egg would implant but children are disabled

This commit is contained in:
lutepickle 2024-05-10 21:06:51 -07:00
parent b70b4a6c90
commit 7f6309466a
1 changed files with 6 additions and 0 deletions

View File

@ -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