Account for tickinterval when considering fertility decay from antisperm

This commit is contained in:
lutepickle 2023-05-04 10:10:15 -07:00
parent 8f1c2eceb3
commit 42b465430e
2 changed files with 1 additions and 0 deletions

Binary file not shown.

View File

@ -206,6 +206,7 @@ namespace RJW_Menstruation
float totalleak = volume;
float decayPerInterval = 1 - Mathf.Pow(1 - Configurations.CumDecayRatio, (float)comp.TickInterval / GenDate.TicksPerHour);
float fertilityDecayPerInterval = 1 - Mathf.Pow(1 - Configurations.CumFertilityDecayRatio, (float)comp.TickInterval / GenDate.TicksPerHour);
antisperm *= (float)comp.TickInterval / GenDate.TicksPerHour;
volume *= Math.Max(0, 1 - decayPerInterval * (1 - DecayResist) * leakfactor);
fertility *= Math.Max(0, 1 - (fertilityDecayPerInterval * (1 - DecayResist) + antisperm));
CutMinor();