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 eb2d879..0943ec2 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 @@ -1390,11 +1390,10 @@ namespace RJW_Menstruation protected virtual void OvulatoryAction() { estrusflag = false; - int i = 0; - float eggnum; + int eggnum; try { - eggnum = Rand.ByCurve(Pawn.def.race.litterSizeCurve); + eggnum = Math.Min((int)Rand.ByCurve(Pawn.def.race.litterSizeCurve), 1); } catch (NullReferenceException) { @@ -1407,12 +1406,10 @@ namespace RJW_Menstruation } eggnum += eggstack; - do - { - ovarypower--; + for (int i = 0; i < eggnum; i++) eggs.Add(new Egg((int)(Props.eggLifespanDays * 24 / CycleFactor))); - i++; - } while (i < (int)eggnum); + ovarypower -= eggnum; + eggstack = 0; if (EggHealth <= 0) {