mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Might as well refactor RecoveryAction out to match the rest
This commit is contained in:
parent
32ae526b0f
commit
e29c7a732a
3 changed files with 27 additions and 24 deletions
Binary file not shown.
|
@ -1464,6 +1464,31 @@ namespace RJW_Menstruation
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected virtual void RecoverAction()
|
||||||
|
{
|
||||||
|
if (curStageHrs >= recoveryIntervalhours)
|
||||||
|
{
|
||||||
|
if (Configurations.EnableMenopause && ovarypower < OvaryPowerThreshold)
|
||||||
|
{
|
||||||
|
GoNextStage(Stage.ClimactericFollicular);
|
||||||
|
}
|
||||||
|
else if (parent.pawn.health.capacities.GetLevel(xxx.reproduction) == 0)
|
||||||
|
{
|
||||||
|
GoNextStage(Stage.Young);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
follicularIntervalhours = PeriodRandomizer(follicularIntervalhours, Props.deviationFactor);
|
||||||
|
GoNextStage(Stage.Follicular);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
curStageHrs += Configurations.CycleAcceleration;
|
||||||
|
StayCurrentStage();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected virtual void YoungAction()
|
protected virtual void YoungAction()
|
||||||
{
|
{
|
||||||
if (!Configurations.EnableMenopause && ovarypower < 0 && ovarypower > -10000)
|
if (!Configurations.EnableMenopause && ovarypower < 0 && ovarypower > -10000)
|
||||||
|
@ -1662,30 +1687,7 @@ namespace RJW_Menstruation
|
||||||
action = PregnantAction;
|
action = PregnantAction;
|
||||||
break;
|
break;
|
||||||
case Stage.Recover:
|
case Stage.Recover:
|
||||||
action = delegate
|
action = RecoverAction;
|
||||||
{
|
|
||||||
if (curStageHrs >= recoveryIntervalhours)
|
|
||||||
{
|
|
||||||
if (Configurations.EnableMenopause && ovarypower < OvaryPowerThreshold)
|
|
||||||
{
|
|
||||||
GoNextStage(Stage.ClimactericFollicular);
|
|
||||||
}
|
|
||||||
else if (parent.pawn.health.capacities.GetLevel(xxx.reproduction) == 0)
|
|
||||||
{
|
|
||||||
GoNextStage(Stage.Young);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
follicularIntervalhours = PeriodRandomizer(follicularIntervalhours, Props.deviationFactor);
|
|
||||||
GoNextStage(Stage.Follicular);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
curStageHrs += Configurations.CycleAcceleration;
|
|
||||||
StayCurrentStage();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
break;
|
break;
|
||||||
case Stage.None:
|
case Stage.None:
|
||||||
action = delegate
|
action = delegate
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
Version 1.0.6.5
|
Version 1.0.6.5
|
||||||
|
- Handle climacteric induced ovulators a bit better.
|
||||||
- Add a brief description when mousing over the current phase in the womb dialog.
|
- Add a brief description when mousing over the current phase in the womb dialog.
|
||||||
|
|
||||||
Version 1.0.6.4
|
Version 1.0.6.4
|
||||||
|
|
Loading…
Reference in a new issue