Repair self-insemination pregnancies at game load

This commit is contained in:
lutepickle 2024-07-31 06:50:38 -07:00
parent ad7919a25b
commit 4be4d881d5
3 changed files with 7 additions and 0 deletions

Binary file not shown.

View file

@ -637,7 +637,11 @@ namespace RJW_Menstruation
Scribe_Values.Look(ref DoCleanWomb, "DoCleanWomb", false);
Scribe_References.Look(ref pregnancy, "pregnancy");
if (Scribe.mode == LoadSaveMode.PostLoadInit)
{
Initialize();
if (pregnancy is HediffWithParents vanillaPreg && vanillaPreg.Mother == vanillaPreg.Father) // Fix mother == father issue
vanillaPreg.SetParents(vanillaPreg.Mother, null, vanillaPreg.geneSet);
}
}

View file

@ -1,3 +1,6 @@
Version 1.5.0.2
- Fix error during labor if the mother is also the father.
Version 1.5.0.1
- Fix error getting blood color of pawns without genes.