diff --git a/1.3/Assemblies/RJW_Menstruation.dll b/1.3/Assemblies/RJW_Menstruation.dll index 886a1b1..a0bf21e 100644 Binary files a/1.3/Assemblies/RJW_Menstruation.dll and b/1.3/Assemblies/RJW_Menstruation.dll differ diff --git a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs index 26c2898..1fb0099 100644 --- a/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs +++ b/1.3/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_Menstruation.cs @@ -1159,6 +1159,11 @@ namespace RJW_Menstruation foreach (Egg egg in eggs) { if (!egg.fertilized || egg.fertstage < 168) continue; + else if (egg.fertilizer is null) + { + deadeggs.Add(egg); + continue; + } else if (Rand.Range(0.0f, 1.0f) <= Configurations.ImplantationChance * ImplantFactor * InterspeciesImplantFactor(egg.fertilizer)) { Hediff_BasePregnancy pregnancy = parent.pawn.GetRJWPregnancy(); diff --git a/changelogs.txt b/changelogs.txt index a9bac38..c0abcdf 100644 --- a/changelogs.txt +++ b/changelogs.txt @@ -1,6 +1,6 @@ Version 1.0.6.6 - - The menstruation cycle used to start ticking exactly one game hour after loading the save. Now the hour timing is consistent across a save/load. - - Every womb will tick at a different (but consistent) time after the hour per pawn. + - The womb tick timing is now more consistent across a save and load, and also spread out across pawns. + - Fix error when an egg fertilized by a nonexistent/garbage collected pawn (e.g. in an NPC's womb) tries to implant. Version 1.0.6.5 - Handle climacteric induced ovulators a bit better.