diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs index 8d7ab50..ce0efe9 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs @@ -213,7 +213,7 @@ namespace RJW_Menstruation PregnancyUtility.ApplyBirthOutcome(thisOutcome, quality, ritual, genes, geneticMother, birtherThing, thisFather, doctor, lordJobRitual, assignments); // No more babies if mom dies halfway through. Unrealistic maybe, but saves a lot of headache in ApplyBirthOutcome - if (mother.health.Dead) break; + if (mother.Dead) break; if (xxx.is_human(baby)) mother.records.Increment(xxx.CountOfBirthHuman); else if (xxx.is_animal(baby)) @@ -266,7 +266,7 @@ namespace RJW_Menstruation baby.relations.ClearAllRelations(); PregnancyUtility.ApplyBirthOutcome(outcome, quality, ritual, genes, geneticMother, birtherThing, thisFather, doctor, lordJobRitual, assignments); - if (mother.health.Dead) break; + if (mother.Dead) break; if (xxx.is_human(baby)) mother.records.Increment(xxx.CountOfBirthHuman); else if (xxx.is_animal(baby)) diff --git a/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/Biotech_Patch.cs b/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/Biotech_Patch.cs index 37e4f6a..4bd3cef 100644 --- a/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/Biotech_Patch.cs +++ b/1.4/source/RJW_Menstruation/RJW_Menstruation/Patch/Biotech_Patch.cs @@ -117,7 +117,7 @@ namespace RJW_Menstruation { public static void Postfix(Thing birtherThing) { - if (birtherThing is Pawn pawn && !pawn.health.Dead) + if (birtherThing is Pawn pawn && !pawn.Dead) pawn.GetBreastComp()?.GaveBirth(); } }