mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Ensure that bleeding ends right away if the pawn gains the no bleeding gene
This commit is contained in:
parent
aa84a2b8bc
commit
690e61916c
1 changed files with 1 additions and 1 deletions
|
@ -1709,7 +1709,7 @@ namespace RJW_Menstruation
|
||||||
|
|
||||||
protected virtual void BleedingAction()
|
protected virtual void BleedingAction()
|
||||||
{
|
{
|
||||||
if (curStageTicks >= currentIntervalTicks)
|
if (curStageTicks >= currentIntervalTicks || noBleeding)
|
||||||
{
|
{
|
||||||
Hediff hediff = Pawn.health.hediffSet.GetFirstHediffOfDef(VariousDefOf.Hediff_MenstrualCramp);
|
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);
|
if (hediff != null && !Pawn.GetMenstruationComps().Any(comp => comp != this && comp.curStage == Stage.Bleeding)) Pawn.health.RemoveHediff(hediff);
|
||||||
|
|
Loading…
Reference in a new issue