From 21e471ebf39639be31ea61e8b2edae36536b2d2f Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Sat, 7 Jan 2023 11:50:37 -0800 Subject: [PATCH] Use the builtin BestOutcome for the childbirth ritual instead of searching our own. --- .../RJW_Menstruation/Hediff_MultiplePregnancy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs index c1d995a..8bcee00 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs @@ -167,7 +167,7 @@ namespace RJW_Menstruation if (ModsConfig.BiotechActive) { // Ugly, but it'll have to do - OutcomeChance bestOutcome = RitualOutcomeEffectDefOf.ChildBirth.outcomeChances.Find(chance => chance.positivityIndex == 1); + OutcomeChance bestOutcome = RitualOutcomeEffectDefOf.ChildBirth.BestOutcome; string label = bestOutcome.label; string description = bestOutcome.description.Formatted(mother.Named("MOTHER"));