Skip to main content

Module decode

Module decode 

Source
Expand description

Per-spell DBC decode arithmetic: power-cost scaling and energize-gain matching.

Structs§

HealthCosts
Health costs decoded from the active health-power row.
PowerModifiers
power_type_enum -> display_modifier divisors used to descale DBC power amounts.

Constants§

NO_POWER_COST_TYPE 🔒
Power-type sentinel for a costless spell, paired with a 0.0 amount (no real power_type_enum is 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.