From ff7a06af99c6f86dac4907d8b5f9f93485f8f242 Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Tue, 26 Jul 2022 21:16:36 -0700 Subject: [PATCH] Ovulate based off of the pawn's def instead of their raceprops --- .../RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 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 a4e75af..b0cdd82 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 @@ -1317,7 +1317,7 @@ namespace RJW_Menstruation float eggnum; try { - eggnum = Rand.ByCurve(parent.pawn.RaceProps.litterSizeCurve); + eggnum = Rand.ByCurve(parent.pawn.def.race.litterSizeCurve); } catch (NullReferenceException) { @@ -1325,7 +1325,7 @@ namespace RJW_Menstruation } catch (ArgumentException e) { - Log.Warning($"Invalid litterSizeCurve for {parent.pawn.RaceProps}: {e}"); + Log.Warning($"Invalid litterSizeCurve for {parent.pawn.def}: {e}"); eggnum = 1; } eggnum += eggstack;