benilla-re systems structs docs

s_statOrder

global · ui

Address
0x808e88 · 148 bytes, up to 0x808f1b
Type
const uint32_t[37]
Meaning
Holds the 37 stat types in display order: 4, 3, 7, 5, 6, 1, 0, 8, 9, 2, 10 and then 26 zeros
Confidence
verified, proof one
Finding
ui/tooltipitemstats#stat-lines

Finding: Stat lines in ui: Item damage, armor and stat lines

Each of the ten stat slots with a nonzero value adds a line of its type's key, with a sign character and the absolute value. The lines come out in a fixed order of types, not slot order: strength, agility, stamina, intellect, spirit, health, mana. Types 2 and above 7 add nothing.

A client fault: a mana stat (type 0) adds its line 27 times, once in its place and 26 more after the last stat line, because the order table has 37 entries, the 26 after the last real one are 0, and 0 is mana's type.

typekey
0ITEM_MOD_MANA
1ITEM_MOD_HEALTH
3ITEM_MOD_AGILITY
4ITEM_MOD_STRENGTH
5ITEM_MOD_INTELLECT
6ITEM_MOD_SPIRIT
7ITEM_MOD_STAMINA

The derivation is in the doc.