Function character_power_from_attrs_raw

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

character_power_from_attrs before the floor — the P_static term of P_ui = floor(P_static × Πq) (BAL-030).

The dynamic multipliers are applied by the caller and the result is floored ONCE at the very end, so a component worth a fraction of a point still moves the number instead of being rounded away mid-formula.