Proper rewrite of induced ovulator dangerday

This commit is contained in:
lutepickle 2022-04-17 22:18:52 -07:00
parent 92d732992a
commit a7968b530d
3 changed files with 8 additions and 3 deletions

Binary file not shown.

View file

@ -57,9 +57,13 @@ namespace RJW_Menstruation
if (parent.pawn.health.hediffSet.HasHediff(VariousDefOf.RJW_IUD)) return false; if (parent.pawn.health.hediffSet.HasHediff(VariousDefOf.RJW_IUD)) return false;
if (curStage == Stage.Follicular || curStage == Stage.ClimactericFollicular) return true; if (curStage == Stage.Follicular || curStage == Stage.ClimactericFollicular) return true;
else if ((curStage == Stage.Luteal || curStage == Stage.ClimactericLuteal) && !IsEggExist) return false; else if (curStage == Stage.Luteal || curStage == Stage.ClimactericLuteal)
{
return base.IsDangerDay; if (!IsEggExist) return false;
else return curStageHrs < Props.eggLifespanDays * 24;
}
else if (curStage == Stage.Ovulatory) return true;
return false;
} }
} }

View file

@ -834,6 +834,7 @@ namespace RJW_Menstruation
/// <summary> /// <summary>
/// Debug: Remove all cums from a womb /// Debug: Remove all cums from a womb
/// </summary> /// </summary>
/// <returns></returns>
public void RemoveAllCums() public void RemoveAllCums()
{ {
cums.Clear(); cums.Clear();