benilla-re systems structs docs

s_keyHealthCost

global · ui

Address
0x854fc8 · 12 bytes, up to 0x854fd3
Type
const char[12]
Meaning
Holds the global string key HEALTH_COST of the health cost
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.