mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Add an implanted egg to deadeggs even if getting the comp fails
This commit is contained in:
parent
a8af20d024
commit
a6afe494d8
1 changed files with 2 additions and 4 deletions
|
@ -1472,11 +1472,9 @@ namespace RJW_Menstruation
|
||||||
HediffComp_PregeneratedBabies comp = vanillaPreg.TryGetComp<HediffComp_PregeneratedBabies>();
|
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()}");
|
if (comp == null) Log.Warning($"Trying to add Biotech egg to {Pawn}'s pregnancy without a pregenerated baby comp: {vanillaPreg.GetUniqueLoadID()}");
|
||||||
else
|
else
|
||||||
{
|
|
||||||
comp.AddNewBaby(Pawn, egg.fertilizer);
|
comp.AddNewBaby(Pawn, egg.fertilizer);
|
||||||
pregnant = true;
|
pregnant = true;
|
||||||
deadeggs.Add(egg);
|
deadeggs.Add(egg);
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case Hediff_MultiplePregnancy multiPreg:
|
case Hediff_MultiplePregnancy multiPreg:
|
||||||
if (!Configurations.EnableHeteroOvularTwins) goto default;
|
if (!Configurations.EnableHeteroOvularTwins) goto default;
|
||||||
|
|
Loading…
Reference in a new issue