mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Apply cycle speed properly to ovary power by age
This commit is contained in:
parent
f612e0df24
commit
58b2e4983c
3 changed files with 4 additions and 4 deletions
Binary file not shown.
|
@ -54,7 +54,7 @@ namespace RJW_Menstruation
|
||||||
}
|
}
|
||||||
|
|
||||||
// There's really no good way to estimate the number of times it's been induced, so this is all we can do
|
// There's really no good way to estimate the number of times it's been induced, so this is all we can do
|
||||||
protected override int PawnEggsUsed(int pawnCyclesElapsed, float avglittersize)
|
protected override int PawnEggsUsed(float pawnCyclesElapsed, float avglittersize)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -959,7 +959,7 @@ namespace RJW_Menstruation
|
||||||
return breedingRatio * GenDate.DaysPerYear / ((float)(Props.follicularIntervalDays + Props.lutealIntervalDays) / Configurations.CycleAccelerationDefault);
|
return breedingRatio * GenDate.DaysPerYear / ((float)(Props.follicularIntervalDays + Props.lutealIntervalDays) / Configurations.CycleAccelerationDefault);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected virtual int PawnEggsUsed(int pawnCyclesElapsed, float avglittersize)
|
protected virtual int PawnEggsUsed(float pawnCyclesElapsed, float avglittersize)
|
||||||
{
|
{
|
||||||
return (int)(pawnCyclesElapsed * avglittersize);
|
return (int)(pawnCyclesElapsed * avglittersize);
|
||||||
}
|
}
|
||||||
|
@ -985,8 +985,8 @@ namespace RJW_Menstruation
|
||||||
int lifetimeCycles = (int)(raceCyclesPerYear * (fertEndAge - fertStartAge));
|
int lifetimeCycles = (int)(raceCyclesPerYear * (fertEndAge - fertStartAge));
|
||||||
int lifetimeEggs = (int)(lifetimeCycles * avglittersize * Utility.RandGaussianLike(0.70f, 1.30f, 5));
|
int lifetimeEggs = (int)(lifetimeCycles * avglittersize * Utility.RandGaussianLike(0.70f, 1.30f, 5));
|
||||||
|
|
||||||
float pawnCyclesPerYear = raceCyclesPerYear / cycleSpeed;
|
float pawnCyclesPerYear = raceCyclesPerYear * cycleSpeed;
|
||||||
int pawnCyclesElapsed = (int)Mathf.Max((pawn.ageTracker.AgeBiologicalYearsFloat - fertStartAge) * pawnCyclesPerYear, 0.0f);
|
float pawnCyclesElapsed = Mathf.Max((pawn.ageTracker.AgeBiologicalYearsFloat - fertStartAge) * pawnCyclesPerYear, 0.0f);
|
||||||
int pawnEggsUsed = PawnEggsUsed(pawnCyclesElapsed, avglittersize);
|
int pawnEggsUsed = PawnEggsUsed(pawnCyclesElapsed, avglittersize);
|
||||||
|
|
||||||
return Math.Max(lifetimeEggs - pawnEggsUsed, 0);
|
return Math.Max(lifetimeEggs - pawnEggsUsed, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue