diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index 725f025..e9d0c57 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -1841,7 +1841,10 @@ namespace RJW_Menstruation protected Stage RandomStage() { - int rand = Rand.Range(0, 2); + int rand = Rand.ElementByWeight( + 0, Props.folicularIntervalDays - Props.bleedingIntervalDays, + 1, Props.lutealIntervalDays, + 2, Props.bleedingIntervalDays); switch (rand) { @@ -1849,7 +1852,7 @@ namespace RJW_Menstruation curStageHrs = Rand.Range(0, (Props.folicularIntervalDays - Props.bleedingIntervalDays) * 24); return Stage.Follicular; case 1: - curStageHrs = Rand.Range(0, Props.eggLifespanDays * 24); + curStageHrs = Rand.Range(0, Props.lutealIntervalDays * 24); return Stage.Luteal; case 2: curStageHrs = Rand.Range(0, Props.bleedingIntervalDays * 24);