Produce baby naming letter in multiple pregnancy

This commit is contained in:
lutepickle 2022-12-24 20:24:49 -08:00
parent f6552b3a68
commit 8d919739bf
3 changed files with 16 additions and 0 deletions

Binary file not shown.

View File

@ -160,6 +160,21 @@ namespace RJW_Menstruation
if (xxx.is_human(mother)) TaleRecorder.RecordTale(TaleDefOf.GaveBirth, new object[] { mother, baby });
if (ModsConfig.BiotechActive)
{
// Ugly, but it'll have to do
OutcomeChance bestOutcome = RitualOutcomeEffectDefOf.ChildBirth.outcomeChances.Find(chance => chance.positivityIndex == 1);
string label = bestOutcome.label;
string description = bestOutcome.description.Formatted(mother.Named("MOTHER"));
ChoiceLetter_BabyBirth choiceLetter_BabyBirth = (ChoiceLetter_BabyBirth)LetterMaker.MakeLetter(
label, description, LetterDefOf.BabyBirth, baby
);
choiceLetter_BabyBirth.Start();
Find.LetterStack.ReceiveLetter(choiceLetter_BabyBirth);
}
PostBirth(mother, father, baby);
}

View File

@ -1,5 +1,6 @@
Version 1.0.8.5
- Added biosculptor recipe to restore 1 year's worth of eggs.
- Babies born from multiple pregnancy will properly produce the prompt to name them.
Version 1.0.8.4
- Fix Biotech xenotype inheritance for single-child pregnancies.