Reset the baby name deadline at birth

This commit is contained in:
lutepickle 2023-03-01 16:29:58 -08:00
parent 91142d640f
commit 09f9438bcc
4 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@ -166,6 +166,7 @@ namespace RJW_Menstruation
if (baby == null) return PawnGenerator.GeneratePawn(request); // Shouldn't happen
baby.ageTracker.AgeBiologicalTicks = 0;
baby.ageTracker.AgeChronologicalTicks = 0;
baby.babyNamingDeadline = Find.TickManager.TicksGame + GenDate.TicksPerDay;
if (request.ForceDead) baby.Kill(null, null);
return baby;
}

View File

@ -127,6 +127,7 @@ namespace RJW_Menstruation
string label = bestOutcome.label;
string description = bestOutcome.description.Formatted(mother.Named("MOTHER"));
baby.babyNamingDeadline = Find.TickManager.TicksGame + GenDate.TicksPerDay;
ChoiceLetter_BabyBirth choiceLetter_BabyBirth = (ChoiceLetter_BabyBirth)LetterMaker.MakeLetter(
label, description, LetterDefOf.BabyBirth, baby
);

View File

@ -1,6 +1,7 @@
Version 1.0.8.6
- Updated Traditional Chinese translation by Hydrogen.
- Fix error when trying to terminate a non-Biotech pregnancy.
- Properly give the opportunity to name a newborn with Biotech and multiple pregnancy.
- Added several menstruation-related genes.
- Added experimental support for twins and hybrids with Biotech pregnancies, disabled by default.