Function decay_multiplier

Source
pub fn decay_multiplier(granted: f64, d: f64) -> f64
Expand description

Chance multiplier at granted units against a snapshotted d, for every family EXCEPT direct Cookies (which keep their own hyperbola).

Flat 1.0 while granted <= d, then continuous linear decay reaching 0 at 2d. Continuity at d matters: a step there would read to a player as the faucet breaking rather than tapering.