Ensure that bleeding ends right away if the pawn gains the no bleeding gene

This commit is contained in:
lutepickle 2023-08-19 18:24:05 -07:00
parent aa84a2b8bc
commit 690e61916c
1 changed files with 1 additions and 1 deletions

View File

@ -1709,7 +1709,7 @@ namespace RJW_Menstruation
protected virtual void BleedingAction()
{
if (curStageTicks >= currentIntervalTicks)
if (curStageTicks >= currentIntervalTicks || noBleeding)
{
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);