From 20c18c2904d44860e2ef88ffab18d051fd914b19 Mon Sep 17 00:00:00 2001 From: lutepickle <28810-lutepickle@users.noreply.gitgud.io> Date: Sat, 23 Jul 2022 15:49:33 -0700 Subject: [PATCH] Rimworld already has TaleDefOf.GaveBirth, so just use that one --- .../RJW_Menstruation/Hediff_MultiplePregnancy.cs | 2 +- 1.3/source/RJW_Menstruation/RJW_Menstruation/VariousDefOf.cs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs index f2a63c6..256f3ba 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs @@ -150,7 +150,7 @@ namespace RJW_Menstruation baby.guest.SetGuestStatus(Faction.OfPlayer, GuestStatus.Prisoner); } - if (xxx.is_human(mother)) TaleRecorder.RecordTale(VariousDefOf.GaveBirth, new object[] { mother, baby }); + if (xxx.is_human(mother)) TaleRecorder.RecordTale(TaleDefOf.GaveBirth, new object[] { mother, baby }); PostBirth(mother, father, baby); } diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/VariousDefOf.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/VariousDefOf.cs index b267dce..5c52ee1 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/VariousDefOf.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/VariousDefOf.cs @@ -46,7 +46,6 @@ namespace RJW_Menstruation public static readonly PawnColumnDef RJW_EarnedMoneyByWhore = DefDatabase.GetNamed("RJW_EarnedMoneyByWhore"); public static readonly RecordDef AmountofCreampied = DefDatabase.GetNamed("AmountofCreampied"); public static readonly RecordDef AmountofFertilizedEggs = DefDatabase.GetNamed("AmountofFertilizedEggs"); - public static readonly TaleDef GaveBirth = DefDatabase.GetNamed("GaveBirth"); public static readonly TaleDef TaleCameInside = DefDatabase.GetNamed("CameInside");