Rename again to enzygoticSiblings for consistency with the configuration option

This commit is contained in:
lutepickle 2022-07-27 15:47:11 -07:00
parent b6169227e7
commit dab0913032
2 changed files with 5 additions and 5 deletions

Binary file not shown.

View file

@ -10,7 +10,7 @@ namespace RJW_Menstruation
public class Hediff_MultiplePregnancy : Hediff_BasePregnancy
{
//public List<Pawn> zygotes;
public Dictionary<Pawn, Pawn> monozygoticSiblings; // Each pawn and who they split from
public Dictionary<Pawn, Pawn> enzygoticSiblings; // Each pawn and who they split from
public override void DiscoverPregnancy()
{
@ -243,7 +243,7 @@ namespace RJW_Menstruation
public override void PostBirth(Pawn mother, Pawn father, Pawn baby)
{
base.PostBirth(mother, father, baby);
if (monozygoticSiblings.NullOrEmpty() || !monozygoticSiblings.TryGetValue(baby, out Pawn original) || baby == original) return;
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);
}
@ -345,7 +345,7 @@ namespace RJW_Menstruation
public override void ExposeData()
{
base.ExposeData();
Scribe_Collections.Look(ref monozygoticSiblings, "monozygoticSiblings", keyLookMode: LookMode.Reference, valueLookMode: LookMode.Reference);
Scribe_Collections.Look(ref enzygoticSiblings, "enzygoticSiblings", keyLookMode: LookMode.Reference, valueLookMode: LookMode.Reference);
}
protected override void GenerateBabies()
@ -459,7 +459,7 @@ namespace RJW_Menstruation
}
}
if (firstbaby != null) monozygoticSiblings?.Add(baby, firstbaby);
if (firstbaby != null) enzygoticSiblings?.Add(baby, firstbaby);
}
}
@ -728,7 +728,7 @@ namespace RJW_Menstruation
public override void Initialize(Pawn mother, Pawn dad)
{
base.Initialize(mother, dad);
monozygoticSiblings = new Dictionary<Pawn, Pawn>();
enzygoticSiblings = new Dictionary<Pawn, Pawn>();
}
}