Record the GaveBirth tale when a human is born

This commit is contained in:
lutepickle 2022-07-18 08:05:00 -07:00
parent 8b93398466
commit 2f5bf19ea6
3 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,8 @@ namespace RJW_Menstruation
}
siblings.Add(baby);
if (xxx.is_human(mother)) TaleRecorder.RecordTale(VariousDefOf.GaveBirth, new object[] { mother, baby });
PostBirth(mother, father, baby);
}

View File

@ -45,6 +45,7 @@ namespace RJW_Menstruation
public static readonly PawnColumnDef RJW_EarnedMoneyByWhore = DefDatabase<PawnColumnDef>.GetNamed("RJW_EarnedMoneyByWhore");
public static readonly RecordDef AmountofCreampied = DefDatabase<RecordDef>.GetNamed("AmountofCreampied");
public static readonly RecordDef AmountofFertilizedEggs = DefDatabase<RecordDef>.GetNamed("AmountofFertilizedEggs");
public static readonly TaleDef GaveBirth = DefDatabase<TaleDef>.GetNamed("GaveBirth");

View File

@ -11,6 +11,7 @@ Version 1.0.7.0
- The chance to fertilize has been changed to an exponential curve instead of a linear one. This will increase the chances of pregnancy at low amounts of semen and slightly reduce it at high amounts.
- Semen now has a fertility percentage instead of "fertile volume".
- The exact time between fertilization and implantation has been adjusted.
- Your colonists can create artwork of someone being born.
- Default values changed to account for the new math. The new defaults will have the same odds of pregnancy with a 10ml ejaculation at ovulation (in a human) as before:
- Fertilization chance from 10%/mL to 15%