Catch a womb with pregnancy set and not in the phase, which can happen when futzing with the debug actions.

This commit is contained in:
lutepickle 2022-08-27 12:42:35 -07:00
parent 6004b54e70
commit c6f08d7601

View file

@ -564,6 +564,12 @@ namespace RJW_Menstruation
return;
}
if (Pregnancy != null && curStage != Stage.Pregnant)
{
Log.Warning($"{Pawn}'s womb has a pregnancy, but was not in the pregnant stage");
curStage = Stage.Pregnant;
}
CumOut();
if (pregnancy == null && Pawn.health.capacities.GetLevel(xxx.reproduction) <= 0) curStage = Stage.Young;
switch (curStage)