Function buff_uptime_mult

Source
pub fn buff_uptime_mult(p: f64, quantity: i64, duration: f64) -> f64
Expand description

Multiplicative buff/debuff factor from a proc chance p (0..1): a buff of strength BUFF_EFF held for a mean uptime, stacked quantity times. Shared by bravery (offensive) and deceit (defensive); preserves the legacy (1 + (BUFF_EFF−1)·uptime)^quantity shape exactly.