mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
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:
parent
3132992aa3
commit
da7284b909
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue