s_powerCostKeys
global · ui
- Address
0x85416c· 20 bytes, up to0x85417f- Type
const char *[5]- Meaning
- Holds the global string keys of the cost of power types 0 to 4
- Confidence
- verified, proof one
- Finding
- ui/tooltipspell#the-cost-and-range-line
Finding: The cost and range line in ui: The spell tooltip
A full build adds one two-cell line: the power cost on the left and the range on the right. The cost is the
spell's power cost over the power type's display divisor, with a cost per second as well when it has one;
types 0 to 4 use MANA_COST, RAGE_COST, FOCUS_COST, ENERGY_COST and HAPPINESS_COST, any other
HEALTH_COST. The range is SPELL_RANGE with "%d-%d" when the minimum is above 0, else the maximum alone,
and moves to the left cell when there is no cost. It is omitted for next-swing spells (+0x18 bits 0x404),
for attribute bit 0x40000000 of +0x24, and for a maximum of 0 or less.
The derivation is in the doc.