Simplify periodic ovulator's bleeding action

This commit is contained in:
lutepickle 2023-05-03 22:52:30 -07:00
parent 0999063728
commit 802fbbe3ca
2 changed files with 2 additions and 5 deletions

Binary file not shown.

View File

@ -79,15 +79,12 @@ namespace RJW_Menstruation
protected override void BleedingAction()
{
if (curStageTicks >= currentIntervalTicks)
base.BleedingAction();
if (curStage != Stage.Bleeding)
{
Hediff hediff = Pawn.health.hediffSet.GetFirstHediffOfDef(VariousDefOf.Hediff_MenstrualCramp);
if (hediff != null && !Pawn.GetMenstruationComps().Any(comp => comp != this && comp.curStage == Stage.Bleeding)) Pawn.health.RemoveHediff(hediff);
estrusflag = false;
GoNextStage(Stage.Anestrus);
return;
}
else base.BleedingAction();
}
protected override void PregnantAction()