Module power_q

Source
Expand description

The dynamic half of displayed / matchmaking Power (BAL-030).

P_ui = floor(P_static × Πq). P_static is combat-effective stats run through crate::mechanics::balance::power_from_attrs; everything that cannot be folded honestly into a stat — a law, an artifact rule, a socketed effect, a facet — enters here as an approximate multiplier q authored on its own template.

Three rules hold the whole module together:

  • A bad combination never lowers Power. Every q is >= 1, so a no-op stone reads as “no contribution”, not as a penalty.
  • The estimate is STABLE out of combat. Nothing here reads the live flip side, gauge, law stacks or the rolled facet: a build is worth the same number before the fight and during it. The two-sided systems are averaged instead (50/50 sides, the expected value of the facet die).
  • Nothing is counted twice. Raw stats — Twin Core multipliers, artifact ownership bonuses, pet base stats, passive stone stats, ability payloads — already moved P_static, so they contribute no q.

The coefficients are approximate by construction and are allowed to be wrong about a specific matchup; S_real (the combat outcome) stays the balance truth.

Functions§

dynamic_power_multiplier
Πq over every dynamic system of character’s CURRENT loadout.
interpolated_q
One coefficient interpolated between its first and last rank.