Display the inbred baby message for menstruation pregnancies

This commit is contained in:
lutepickle 2024-05-05 15:29:01 -07:00
parent 42a49cc0c9
commit 1cb1b5dcd6

View file

@ -123,7 +123,9 @@ namespace RJW_Menstruation
RitualOutcomePossibility bestOutcome = RitualOutcomeEffectDefOf.ChildBirth.BestOutcome; RitualOutcomePossibility bestOutcome = RitualOutcomeEffectDefOf.ChildBirth.BestOutcome;
string label = bestOutcome.label; string label = bestOutcome.label;
string description = bestOutcome.description.Formatted(mother.Named("MOTHER")); TaggedString description = bestOutcome.description.Formatted(mother.Named("MOTHER"));
if (baby.genes?.HasGene(GeneDefOf.Inbred) ?? false)
description += "\n\n" + "InbredBabyBorn".Translate();
baby.babyNamingDeadline = Find.TickManager.TicksGame + GenDate.TicksPerDay; baby.babyNamingDeadline = Find.TickManager.TicksGame + GenDate.TicksPerDay;
ChoiceLetter_BabyBirth choiceLetter_BabyBirth = (ChoiceLetter_BabyBirth)LetterMaker.MakeLetter( ChoiceLetter_BabyBirth choiceLetter_BabyBirth = (ChoiceLetter_BabyBirth)LetterMaker.MakeLetter(