mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Better handle climacteric for induced ovulators
This commit is contained in:
parent
0a7e80b353
commit
32ae526b0f
1 changed files with 30 additions and 2 deletions
|
@ -45,8 +45,8 @@ namespace RJW_Menstruation
|
|||
}
|
||||
if (curStageHrs >= FollicularIntervalHours)
|
||||
{
|
||||
GoNextStage(Stage.Luteal);
|
||||
estrusflag = false;
|
||||
GoNextStage(Stage.Luteal);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -60,10 +60,38 @@ namespace RJW_Menstruation
|
|||
}
|
||||
}
|
||||
|
||||
protected override void ClimactericFollicularAction()
|
||||
{
|
||||
if (!Configurations.EnableMenopause)
|
||||
{
|
||||
RemoveClimactericEffect();
|
||||
StayCurrentStage();
|
||||
}
|
||||
else if (curStageHrs >= (follicularIntervalhours - bleedingIntervalhours) * CycleFactor)
|
||||
{
|
||||
estrusflag = false;
|
||||
GoNextStage(Stage.ClimactericLuteal);
|
||||
}
|
||||
else
|
||||
{
|
||||
curStageHrs += Configurations.CycleAcceleration;
|
||||
StayCurrentStage();
|
||||
}
|
||||
}
|
||||
|
||||
protected override void AfterCumIn(Pawn cummer)
|
||||
{
|
||||
base.AfterCumIn(cummer);
|
||||
if (curStage == Stage.Follicular || curStage == Stage.ClimactericFollicular) curStage = Stage.Ovulatory;
|
||||
switch (curStage)
|
||||
{
|
||||
case Stage.Follicular:
|
||||
curStage = Stage.Ovulatory;
|
||||
break;
|
||||
case Stage.ClimactericFollicular:
|
||||
if(ovarypower >= OvaryPowerThreshold / 3 || Rand.Range(0.0f, 1.0f) > 0.2f) // chance to fail to induce
|
||||
curStage = Stage.Ovulatory;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsDangerDay
|
||||
|
|
Loading…
Reference in a new issue