mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Reformat RandomOvulationChance
This commit is contained in:
parent
f79050483d
commit
ebb486179b
2 changed files with 3 additions and 9 deletions
|
@ -110,9 +110,6 @@ namespace RJW_Menstruation
|
|||
else return base.ShouldBeInEstrus();
|
||||
}
|
||||
|
||||
protected override float RandomOvulationChance()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
protected override float RandomOvulationChance => 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1896,16 +1896,13 @@ namespace RJW_Menstruation
|
|||
else return Rand.Range(0.6f, 1.0f);
|
||||
}
|
||||
|
||||
protected virtual float RandomOvulationChance()
|
||||
{
|
||||
return (float)Props.ovulationIntervalHours / GenDate.HoursPerDay;
|
||||
}
|
||||
protected virtual float RandomOvulationChance => (float)Props.ovulationIntervalHours / GenDate.HoursPerDay;
|
||||
|
||||
protected Stage RandomStage()
|
||||
{
|
||||
Stage stage = Rand.ElementByWeight(
|
||||
Stage.Follicular, Props.follicularIntervalDays - Props.bleedingIntervalDays,
|
||||
Stage.Ovulatory, RandomOvulationChance(),
|
||||
Stage.Ovulatory, RandomOvulationChance,
|
||||
Stage.Luteal, Props.lutealIntervalDays,
|
||||
Stage.Bleeding, Props.bleedingIntervalDays);
|
||||
|
||||
|
|
Loading…
Reference in a new issue