Function buff_uptime_mult_branches

Source
pub fn buff_uptime_mult_branches(p: f64, duration: f64) -> f64
Expand description

Honest two-branch pricing for bravery/deceit: a proc picks RANDOMLY between an offensive branch (empower/vulnerability = ×1.5 in power terms) and a defensive one (protection/weakness = ×0.5 damage/attack ⇒ ×2.0 in power terms) — each branch runs at HALF the proc uptime. A single-EFF shape would under-value the defensive branch ~25% at high uptime. Power is DPS×EHP, so the combined factor applies wherever the caller multiplies it in.