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
1 changed files with 1 additions and 3 deletions

View File

@ -291,9 +291,7 @@ namespace RJW_Menstruation
public static void Postfix(ref int __result, Pawn mother)
{
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;
}
}