Expand description
Per-spell DBC decode arithmetic: power-cost scaling and energize-gain matching.
Structs§
- Health
Costs - Health costs decoded from the active health-power row.
- Power
Modifiers power_type_enum -> display_modifierdivisors used to descale DBC power amounts.
Constants§
- NO_
POWER_ 🔒COST_ TYPE - Power-type sentinel for a costless spell, paired with a
0.0amount (no realpower_type_enumis negative).
Functions§
- cost_
entry_ index - 1-based DBC power-cost entry index for the resource type’s cost; 0 when absent.
- health_
cost - Flat, percentage, and optional health costs from the active health-power row.
- power_
cost_ 🔒is_ available - power_
cost_ 🔒row - primary_
cost - Primary power cost (descaled) and its power type, matched by resource type; -1 when absent.
- primary_
cost_ pct - primary_
max_ cost_ pct - primary_
optional_ cost - primary_
optional_ cost_ pct - primary_
power_ burn_ cost - Optional primary-resource spend encoded as a Power Burn spell effect.
- primary_
resource_ gain - Resource gain from the first ENERGIZE effect granting the primary resource type, descaled.
- scale_
power_ amount - Descale a raw DBC power amount by its
display_modifier(or leave it as-is when absent). - secondary_
cost - Minimum secondary power cost from the row matching the spec’s secondary resource type.
- secondary_
optional_ cost - Optional secondary power cost above the minimum (for variable-point finishers).
- secondary_
resource_ gain - Resource gain from the first ENERGIZE effect granting the secondary resource type, descaled.