Ensure that bleeding ends right away if the pawn gains the no bleeding gene
This commit is contained in:
parent
aa84a2b8bc
commit
690e61916c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue