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
1 changed files with 6 additions and 0 deletions

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)