Compare commits

..

No commits in common. "08ebaa9db3f016436146063cdaec3ca5692f0462" and "80243c78f138be5b3fe3d3380045333c5fe27a09" have entirely different histories.

2 changed files with 7 additions and 7 deletions

Binary file not shown.

View file

@ -1140,13 +1140,11 @@ namespace RJW_Menstruation
initError = true;
Props = (CompProperties_Menstruation)props;
if (cums == null) cums = new List<Cum>();
if (eggs == null) eggs = new List<Egg>();
Notify_UpdatedGenes();
if (Props.infertile)
{
if (cums == null) cums = new List<Cum>();
curStage = Stage.None;
loaded = true;
initError = false;
@ -1172,6 +1170,8 @@ namespace RJW_Menstruation
}
if (crampPain < 0) crampPain = PainRandomizer();
InitializeExtraValues();
if (cums == null) cums = new List<Cum>();
if (eggs == null) eggs = new List<Egg>();
TakeLoosePregnancy();
@ -1968,10 +1968,10 @@ namespace RJW_Menstruation
ageTicks = 0;
}
public Egg(int lifespanticks)
public Egg(int lifespanhrs)
{
fertilized = false;
lifeSpanTicks = (int)(lifespanticks * Configurations.EggLifespanMultiplier);
lifeSpanTicks = (int)(lifespanhrs * GenDate.TicksPerHour * Configurations.EggLifespanMultiplier);
fertilizer = null;
ageTicks = 0;
}
@ -1991,10 +1991,10 @@ namespace RJW_Menstruation
if (fertstage >= 0) ticksSinceFertilization = fertstage * GenDate.TicksPerHour;
}
Scribe_References.Look(ref fertilizer, "fertilizer", true);
Scribe_Values.Look(ref fertilized, "fertilized", false);
Scribe_Values.Look(ref fertilized, "fertilized", fertilized, true);
Scribe_Values.Look(ref lifeSpanTicks, "lifeSpanTicks", lifeSpanTicks, true);
Scribe_Values.Look(ref ageTicks, "ageTicks", ageTicks, true);
Scribe_Values.Look(ref ticksSinceFertilization, "ticksSinceFertilization", 0);
Scribe_Values.Look(ref ticksSinceFertilization, "ticksSinceFertilization", ticksSinceFertilization, true);
}
}