Compare commits
2 Commits
be05766fba
...
c93ae89695
Author | SHA1 | Date |
---|---|---|
lutepickle | c93ae89695 | |
lutepickle | 3bdf881533 |
|
@ -658,7 +658,7 @@ namespace RJW_Menstruation
|
|||
opcache = -1;
|
||||
|
||||
if (Pawn.genes == null || !ModsConfig.BiotechActive) return;
|
||||
foreach (MenstruationModExtension extension in Pawn.genes.GenesListForReading.Select(gene => gene.def.GetModExtension<MenstruationModExtension>()).Where(ext => ext != null))
|
||||
foreach (MenstruationModExtension extension in Pawn.genes.GenesListForReading.Where(gene => gene.Active).Select(gene => gene.def.GetModExtension<MenstruationModExtension>()).Where(ext => ext != null))
|
||||
{
|
||||
eggLifeSpanTicks = (int)(eggLifeSpanTicks * extension.eggLifeTimeFactor);
|
||||
if (extension.alwaysEstrus) estrusLevel = EstrusLevel.Visible;
|
||||
|
|
|
@ -94,7 +94,10 @@ namespace RJW_Menstruation
|
|||
Pawn baby = PawnGenerator.GeneratePawn(request);
|
||||
if (baby == null) break;
|
||||
PregnancyCommon.SetupBabyXenotype(mother, father, baby); // Probably redundant with Biotech post-birth xenotyping
|
||||
// baby.Drawer.renderer.graphics.ResolveAllGraphics();
|
||||
// HAR and some xenotype mods don't randomize graphics until it's rendered
|
||||
// So poke it early
|
||||
baby.Drawer.renderer.renderTree.EnsureInitialized(PawnRenderFlags.DrawNow);
|
||||
|
||||
if (division > 1)
|
||||
{
|
||||
if (i == 0)
|
||||
|
|
|
@ -332,7 +332,8 @@ 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.graphics.ResolveAllGraphics();
|
||||
baby.Drawer.renderer.renderTree.EnsureInitialized(PawnRenderFlags.DrawNow);
|
||||
|
||||
if (division > 1)
|
||||
{
|
||||
if (i == 0)
|
||||
|
|
Loading…
Reference in New Issue