Little cleanups

This commit is contained in:
lutepickle 2023-04-18 07:20:35 -07:00
parent 5050e192ed
commit 02200b2bfa
2 changed files with 3 additions and 3 deletions

View File

@ -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))

View File

@ -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();
}
}