Flip the if in PostBirth

This commit is contained in:
lutepickle 2022-07-30 18:31:35 -07:00
parent c5d8a92299
commit 814d500b45

View file

@ -243,9 +243,9 @@ namespace RJW_Menstruation
public override void PostBirth(Pawn mother, Pawn father, Pawn baby)
{
base.PostBirth(mother, father, baby);
if (enzygoticSiblings.NullOrEmpty() || !enzygoticSiblings.TryGetValue(baby, out Pawn original) || baby == original) return;
// Has to happen on birth since RJW redoes the genitals at birth
ProcessIdenticalSibling(baby, original);
if (!enzygoticSiblings.NullOrEmpty() && enzygoticSiblings.TryGetValue(baby, out Pawn original) && baby != original)
ProcessIdenticalSibling(baby, original);
}
// From RJW's trait code