Function ability_info

Source
pub fn ability_info(
    config: &GameConfig,
    lookups: &ContentLookups,
    ability_id: Uuid,
    level: i64,
) -> Result<AbilityInfo>
Expand description

Native port of the content module’s get_ability_info(id, level): dispatch to the per-ability ability_info(level) closure baked into the ability map. Returns None for ability ids that have no ability_info

Faithfully mirrors each of the 18 closures’ arithmetic; the per-ability constants are ported verbatim from