Add an implanted egg to deadeggs even if getting the comp fails

This commit is contained in:
lutepickle 2023-10-29 16:23:01 -07:00
parent a8af20d024
commit a6afe494d8
1 changed files with 2 additions and 4 deletions

View File

@ -1472,11 +1472,9 @@ namespace RJW_Menstruation
HediffComp_PregeneratedBabies comp = vanillaPreg.TryGetComp<HediffComp_PregeneratedBabies>();
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;