Give induced ovulators special treatment for danger day
This commit is contained in:
parent
7387c0dfe9
commit
7ce860dc1e
Binary file not shown.
|
@ -50,7 +50,18 @@ namespace RJW_Menstruation
|
|||
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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -376,7 +376,7 @@ namespace RJW_Menstruation
|
|||
return !eggs.NullOrEmpty();
|
||||
}
|
||||
}
|
||||
public bool IsDangerDay
|
||||
public virtual bool IsDangerDay
|
||||
{
|
||||
get
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue