mirror of
https://gitgud.io/lutepickle/rjw_menstruation.git
synced 2024-08-14 22:46:52 +00:00
Account for tickinterval when considering fertility decay from antisperm
This commit is contained in:
parent
8f1c2eceb3
commit
42b465430e
2 changed files with 1 additions and 0 deletions
Binary file not shown.
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue