Function regeneration_tick

Source
pub fn regeneration_tick(ctx: &EventCtx<'_>) -> Result<Vec<OverlordEvent>>
Expand description

Port of the regeneration tick: heal the entity by its regeneration_rate stat plus the share of MAX HP its regeneration_percent stat carries (BAL-034 — the regen class scales with the pool it is protecting, not with a number authored for early gear). get_entity_stat reads a stat (base + bonus + mod); heal_entity pushes a Heal event clamped to missing HP (no RNG).