Update for the RJW function changes. Again.

This commit is contained in:
lutepickle 2022-11-18 06:48:43 -08:00
parent 7eee57709d
commit 5a17c0e72f
3 changed files with 5 additions and 9 deletions

Binary file not shown.

View File

@ -10,7 +10,7 @@ namespace RJW_Menstruation
{
public class Hediff_MultiplePregnancy : Hediff_BasePregnancy
{
protected Dictionary<Pawn, Pawn> enzygoticSiblings; // Each pawn and who they split from
protected Dictionary<Pawn, Pawn> enzygoticSiblings = new Dictionary<Pawn, Pawn>(); // Each pawn and who they split from
public override void DiscoverPregnancy()
{
@ -52,7 +52,7 @@ namespace RJW_Menstruation
{
father = Trytogetfather(ref pawn);
}
Initialize(pawn, father);
Initialize(pawn, father, SelectDnaGivingParent(pawn, father));
}
foreach (Pawn baby in babies)
@ -356,7 +356,7 @@ namespace RJW_Menstruation
Scribe_Collections.Look(ref enzygoticSiblings, "enzygoticSiblings", keyLookMode: LookMode.Reference, valueLookMode: LookMode.Reference);
}
protected override void GenerateBabies()
protected override void GenerateBabies(DnaGivingParent _)
{
AddNewBaby(pawn, father);
}
@ -755,12 +755,6 @@ namespace RJW_Menstruation
pawn.story.traits.allTraits = selectedTraits;
}
public override void Initialize(Pawn mother, Pawn dad)
{
enzygoticSiblings = new Dictionary<Pawn, Pawn>();
base.Initialize(mother, dad);
}
public string DueDate()
{
if (pawn.Tile == -1) return "";

View File

@ -1,4 +1,6 @@
Version 1.0.8.3
- Compatibility update for RJW 5.3.0.9
- Requires RJW 5.3.0.9
- Re-added support for Animal Genetics (Continued).
Version 1.0.8.2