benilla-re systems structs docs

s_lcdStatusArmIndex

global · ui

Address
0x72b21c · 9 bytes, up to 0x72b224
Type
const uint8_t[9]
Meaning
Maps a class byte from 1 to 9 to an arm of the status element lookup 0x72b150
Confidence
verified, proof one
Finding
ui/lcd#status-readouts

Finding: Status readouts in ui: the keyboard LCD

0x72b150 answers the element with id 0x14 or 0x2a by the class byte of the player: the jump table at 0x72b210 indexed by 0x72b21c selects one of them, and a player without a class entry gives 0. 0x72b0b0 answers, for the active player only, the count of the class's item through CountInventoryItemsByEntry(player + 0x1d38, entry, 0) (0x622130), the entry being 0x1879 for class 9 and the dword at [[player+0xe68]+0x102c] otherwise, or 0 when that entry is 0. 0x72b230 and 0x72b270 forward to CountFreeSlots (0x622910) and GetDurabilityPercent (0x6229d0) of the same list.

The derivation is in the doc.