diff --git a/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs b/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs index 802d92d..6732a92 100644 --- a/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs +++ b/1.5/source/RJW_Menstruation/RJW_Menstruation/HediffComps/HediffComp_PregeneratedBabies.cs @@ -78,6 +78,7 @@ namespace RJW_Menstruation kind: babyPawnKind, faction: mother.Faction, allowDowned: true, + // fixedLastName seems not to actually do anything, as we eventually end up in PawnBioAndNameGenerator.NameResolvedFrom, which ignores its forcedLastName argument fixedLastName: (string)RandomLastName.Invoke(null, new object[] { mother, mother, xxx.is_human(father) ? father : null }), forceNoIdeo: true, forcedEndogenes: PregnancyUtility.GetInheritedGenes(father, mother), @@ -95,7 +96,7 @@ namespace RJW_Menstruation PregnancyCommon.SetupBabyXenotype(mother, father, baby); // Probably redundant with Biotech post-birth xenotyping // HAR and some xenotype mods don't randomize graphics until it's rendered // So poke it early - baby.Drawer.renderer.EnsureGraphicsInitialized(); + baby.Drawer.renderer.renderTree.EnsureInitialized(PawnRenderFlags.DrawNow); if (division > 1) { diff --git a/1.5/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs b/1.5/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs index 531a911..cf3fbbb 100644 --- a/1.5/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs +++ b/1.5/source/RJW_Menstruation/RJW_Menstruation/Hediff_MultiplePregnancy.cs @@ -332,7 +332,7 @@ namespace RJW_Menstruation PregnancyCommon.SetupBabyXenotype(mother, father, baby); // HAR and some xenotype mods don't randomize graphics until it's rendered // So poke it early - baby.Drawer.renderer.EnsureGraphicsInitialized(); + baby.Drawer.renderer.renderTree.EnsureInitialized(PawnRenderFlags.DrawNow); if (division > 1) { diff --git a/1.5/source/RJW_Menstruation/RJW_Menstruation/Patch/RJW_Patch.cs b/1.5/source/RJW_Menstruation/RJW_Menstruation/Patch/RJW_Patch.cs index e580ccf..d4a6f94 100644 --- a/1.5/source/RJW_Menstruation/RJW_Menstruation/Patch/RJW_Patch.cs +++ b/1.5/source/RJW_Menstruation/RJW_Menstruation/Patch/RJW_Patch.cs @@ -108,6 +108,7 @@ namespace RJW_Menstruation else comp = partner.GetRandomMenstruationComp(); if (comp == null) { + if (Configurations.Debug) ModLog.Message("used original rjw method: Comp missing"); return true; } else if (AndroidsCompatibility.IsAndroid(pawn) && !AndroidsCompatibility.AndroidPenisFertility(pawn)) diff --git a/changelogs.txt b/changelogs.txt index beb35b2..fc2e2f7 100644 --- a/changelogs.txt +++ b/changelogs.txt @@ -2,7 +2,6 @@ Version 1.5.0.0 - Support for RimWorld 1.5. All future changes to Menstruation will only be for RimWorld 1.5. - Updated Traditional Chinese translation by Hydrogen. - Inactive genes will no longer be applied to wombs. - - Fix babies becoming the wrong pawnkind in some scenarios. Version 1.0.9.4 - Added graphics for the menstruation genes with thanks to Alpenglow.