Proper check for the new speed/variability on init

This commit is contained in:
lutepickle 2022-07-07 10:57:30 -07:00
parent 4737641673
commit 5c1fb93613
1 changed files with 3 additions and 3 deletions

View File

@ -897,8 +897,8 @@ namespace RJW_Menstruation
if (!Props.infertile)
{
if (cycleSpeed < 1) cycleSpeed = Utility.RandGaussianLike(0.8f, 1.2f);
if (cycleVariability < 1) cycleVariability = Utility.RandomVariabilityPercent();
if (cycleSpeed < 0f) cycleSpeed = Utility.RandGaussianLike(0.8f, 1.2f);
if (cycleVariability < 0f) cycleVariability = Utility.RandomVariabilityPercent();
if (currentIntervalhours < 0)
{
//follicularIntervalhours = PeriodRandomizer(Props.follicularIntervalDays * 24, Props.deviationFactor);
@ -1448,7 +1448,7 @@ namespace RJW_Menstruation
GoNextStage(Stage.Ovulatory);
else
{
currentIntervalhours = totalFollicularHours - currentIntervalhours;
currentIntervalhours = totalFollicularHours - currentIntervalhours; // I.e., the remaining follicular hours equals the total minus the bleeding hours elapsed
GoNextStage(climacteric ? Stage.ClimactericFollicular : Stage.Follicular, false);
}
}