From 902cd6537579e8d77e45542849c0ab02d836c9e0 Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Mon, 11 Jul 2022 08:40:40 -0700 Subject: [PATCH] Tiny refactor to adding stacked eggs to ovulation --- .../HediffComps/HediffComp_Menstruation.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 fc1dbb4..736643f 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 @@ -1326,17 +1326,18 @@ namespace RJW_Menstruation float eggnum; try { - eggnum = Rand.ByCurve(parent.pawn.RaceProps.litterSizeCurve) + eggstack; + eggnum = Rand.ByCurve(parent.pawn.RaceProps.litterSizeCurve); } catch(NullReferenceException) { - eggnum = 1 + eggstack; + eggnum = 1; } catch(ArgumentException e) { Log.Warning($"Invalid litterSizeCurve for {parent.pawn.RaceProps}: {e}"); - eggnum = 1 + eggstack; + eggnum = 1; } + eggnum += eggstack; do {