Properly set the conditions to not go/stay in the infertile stage for InfertileAction and RecoverAction

This commit is contained in:
lutepickle 2023-03-06 17:20:49 -08:00
parent 4504d02245
commit 2bb0871919

View file

@ -1713,7 +1713,7 @@ namespace RJW_Menstruation
{ {
if (curStageHrs >= currentIntervalHours) if (curStageHrs >= currentIntervalHours)
{ {
if (Pawn.health.capacities.GetLevel(xxx.reproduction) == 0 || EggHealth <= 0 || Pawn.SterileGenes()) if (ImplantChance <= 0.0f || EggHealth <= 0)
{ {
GoNextStage(Stage.Infertile); GoNextStage(Stage.Infertile);
} }
@ -1735,7 +1735,7 @@ namespace RJW_Menstruation
protected virtual void InfertileAction() protected virtual void InfertileAction()
{ {
if (Pawn.health.capacities.GetLevel(xxx.reproduction) <= 0 || EggHealth <= 0 || Pawn.SterileGenes()) if (ImplantChance <= 0 || EggHealth <= 0)
{ {
StayCurrentStageConst(Stage.Infertile); StayCurrentStageConst(Stage.Infertile);
} }