mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Produce baby naming letter in multiple pregnancy
This commit is contained in:
parent
f6552b3a68
commit
8d919739bf
3 changed files with 16 additions and 0 deletions
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 (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);
|
PostBirth(mother, father, baby);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
Version 1.0.8.5
|
Version 1.0.8.5
|
||||||
- Added biosculptor recipe to restore 1 year's worth of eggs.
|
- 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
|
Version 1.0.8.4
|
||||||
- Fix Biotech xenotype inheritance for single-child pregnancies.
|
- Fix Biotech xenotype inheritance for single-child pregnancies.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue