Use the builtin BestOutcome for the childbirth ritual instead of searching our own.

This commit is contained in:
lutepickle 2023-01-07 11:50:37 -08:00
parent da9903aaf9
commit 21e471ebf3
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ namespace RJW_Menstruation
if (ModsConfig.BiotechActive) if (ModsConfig.BiotechActive)
{ {
// Ugly, but it'll have to do // 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 label = bestOutcome.label;
string description = bestOutcome.description.Formatted(mother.Named("MOTHER")); string description = bestOutcome.description.Formatted(mother.Named("MOTHER"));