Compare commits

...

2 commits

4 changed files with 16 additions and 5 deletions

Binary file not shown.

View file

@ -1143,7 +1143,7 @@ namespace RJW_Menstruation
if (cums == null) cums = new List<Cum>(); if (cums == null) cums = new List<Cum>();
if (eggs == null) eggs = new List<Egg>(); if (eggs == null) eggs = new List<Egg>();
Notify_UpdatedGenes(); PreInitialize();
if (Props.infertile) if (Props.infertile)
{ {
@ -1180,6 +1180,11 @@ namespace RJW_Menstruation
initError = false; initError = false;
} }
protected virtual void PreInitialize()
{
Notify_UpdatedGenes();
}
protected virtual void InitializeExtraValues() protected virtual void InitializeExtraValues()
{ {
} }

View file

@ -21,10 +21,15 @@ namespace RJW_Menstruation
public new CompProperties_PeriodicOvulator Props; public new CompProperties_PeriodicOvulator Props;
protected override void PreInitialize()
{
base.PreInitialize();
Props = (CompProperties_PeriodicOvulator)props;
}
protected override void InitializeExtraValues() protected override void InitializeExtraValues()
{ {
base.InitializeExtraValues(); base.InitializeExtraValues();
Props = (CompProperties_PeriodicOvulator)props;
if (averageCycleIntervalTicks < 0) if (averageCycleIntervalTicks < 0)
{ {
averageCycleIntervalTicks = (int)(Props.cycleIntervalDays.RandomInRange * GenDate.TicksPerDay / cycleSpeed); averageCycleIntervalTicks = (int)(Props.cycleIntervalDays.RandomInRange * GenDate.TicksPerDay / cycleSpeed);
@ -40,8 +45,8 @@ namespace RJW_Menstruation
protected override float RaceCyclesPerYear() protected override float RaceCyclesPerYear()
{ {
// Don't bother trying to work seasonal breeding into the math // Don't bother trying to work seasonal breeding into the math
// Due to the enormous variation in possible cycle gaps, cheat and base it off the individual // Base it off of the shortest cycle interval of the vagina
return averageCycleIntervalTicks * cycleSpeed / GenDate.TicksPerYear; // cancel out their cycleSpeed from initialization to get their "normal" speed return GenDate.DaysPerYear / (Props.cycleIntervalDays.TrueMin / Configurations.CycleAccelerationDefault);
} }
protected override void BeforeSimulator() protected override void BeforeSimulator()

View file

@ -2,6 +2,7 @@ Version 1.0.9.0
- Fix errors when opening the womb dialog of some low fertility pawns. - Fix errors when opening the womb dialog of some low fertility pawns.
- Updated Traditional Chinese translation by Hydrogen. - Updated Traditional Chinese translation by Hydrogen.
- New options to update wombs more or less often, defaulting to every hour. - New options to update wombs more or less often, defaulting to every hour.
- More generous egg allocation for newly spawned periodic ovulators.
- Menstruation-related genes will now stay on females during initial pawn setup. - Menstruation-related genes will now stay on females during initial pawn setup.
Version 1.0.8.9 Version 1.0.8.9