Shift the fertility check above the switch in compPostTick

This commit is contained in:
lutepickle 2022-08-09 07:02:55 -07:00
parent a77988fd99
commit f19494fd5a

View file

@ -543,6 +543,7 @@ namespace RJW_Menstruation
} }
CumOut(); CumOut();
if (pregnancy == null && parent.pawn.health.capacities.GetLevel(xxx.reproduction) <= 0) curStage = Stage.Young;
switch (curStage) switch (curStage)
{ {
case Stage.Follicular: case Stage.Follicular:
@ -583,8 +584,7 @@ namespace RJW_Menstruation
default: default:
GoNextStage(Stage.Follicular); GoNextStage(Stage.Follicular);
break; break;
} }
if (pregnancy == null && parent.pawn.health.capacities.GetLevel(xxx.reproduction) <= 0) curStage = Stage.Young;
} }
catch (Exception ex) catch (Exception ex)
{ {