Give induced ovulators special treatment for danger day

This commit is contained in:
lutepickle 2022-03-11 09:42:27 -08:00
parent 7387c0dfe9
commit 7ce860dc1e
3 changed files with 12 additions and 1 deletions

Binary file not shown.

View file

@ -50,7 +50,18 @@ namespace RJW_Menstruation
if (curStage == Stage.Follicular) curStage = Stage.Ovulatory; if (curStage == Stage.Follicular) curStage = Stage.Ovulatory;
} }
public override bool IsDangerDay
{
get
{
if (parent.pawn.health.hediffSet.HasHediff(VariousDefOf.RJW_IUD)) return false;
if (curStage == Stage.Follicular || curStage == Stage.ClimactericFollicular) return true;
else if ((curStage == Stage.Luteal || curStage == Stage.ClimactericLuteal) && !IsEggExist) return false;
return base.IsDangerDay;
}
}
} }

View file

@ -376,7 +376,7 @@ namespace RJW_Menstruation
return !eggs.NullOrEmpty(); return !eggs.NullOrEmpty();
} }
} }
public bool IsDangerDay public virtual bool IsDangerDay
{ {
get get
{ {