pub fn character_attrs_power(
config: &GameConfig,
level: i64,
inventory: &[Item],
pets: &[Pet],
) -> Result<i64, String>Expand description
The attrs_power term of character_power: char-level attributes,
inventory items and pet stats composed into an AttrMap and run through
power_from_attrs — WITHOUT the trailing * ability_eff_sum multiplier.
Accumulation order is load-bearing (per-key float sums): char-level
attributes, then inventory items (each item’s attributes in order), then
pets (in the given slice order, each pet’s stats in order) — exactly the
order the original used; character_power delegates here so both paths
stay byte-identical.
For callers comparing loadouts that carry no abilities of their own (e.g.
ranking pets for fast-equip), where character_power’s ability factor
would multiply every score by 0.