Produce baby naming letter in multiple pregnancy
This commit is contained in:
parent
f6552b3a68
commit
8d919739bf
Binary file not shown.
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue