Function ability_power_mults

Source
pub fn ability_power_mults(
    config: &GameConfig,
    lookups: &ContentLookups,
    abilities: &EquippedAbilities,
    leader_pet_ability: Option<(Uuid, i64)>,
    attrs: &AttrMap,
) -> (f64, f64)
Expand description

Aggregate the equipped abilities into the two power-axis multipliers: (dps_mult, ehp_mult).

Membership matches combat exactly: make_active_abilities_from_equipped sends BOTH slotted (gacha slots) and unslotted (the class kit and other slotless grants) into the fight, so both count here — EXCEPT abilities with an empty start_behavior: those never begin a cast cycle in combat, so a scalar that counts them lies.

  • dps_mult = Σ dps_add — additive throughput, exactly how per-ability damage stacks in combat. Zero castable abilities ⇒ 0.0 (a character that casts nothing deals nothing — “bare character power is 0” is the established semantic).
  • ehp_mult = capped heal-sustain factor (hp + heal/fight) / hp, the same shape and the same hot_tick_max_pct cap the combat HoT tick obeys, and the same treatment power_from_attrs already gives regeneration_rate.