Function cap_per_tick

Source
pub fn cap_per_tick(amount: f64, max_hp: f64, pct: f64) -> f64
Expand description

Per-tick heal/damage cap: amount bounded above by pct × max_hp. Used by the regen / HoT / DoT combat ticks so a mis-tuned effect can’t out-heal all incoming damage (regen/HoT) or one-shot (DoT). Pure + testable; pct comes from the matching tuning() knob (regen|hot|dot_tick_max_pct).