Make the HAR disabler conditional only on the configuration. There's too many birtherThing/geneticMother edge cases to make puzzling it out practical

This commit is contained in:
lutepickle 2023-01-11 06:24:14 -08:00
parent 3132992aa3
commit da7284b909

View file

@ -291,8 +291,6 @@ namespace RJW_Menstruation
public static void Postfix(ref int __result, Pawn mother) public static void Postfix(ref int __result, Pawn mother)
{ {
if (Configurations.PregnancySource != Configurations.PregnancyType.Biotech || !Configurations.EnableBiotechTwins) return; if (Configurations.PregnancySource != Configurations.PregnancyType.Biotech || !Configurations.EnableBiotechTwins) return;
// 'mother' is the genetic mother, but unless she's in labor at the same time the birtherthing is spitting out, this will work as intended
if (mother?.health.hediffSet.GetFirstHediff<Hediff_LaborPushing>()?.TryGetComp<HediffComp_PregeneratedBabies>()?.HasBaby ?? false)
__result = 0; __result = 0;
return; return;
} }