benilla-re systems structs docs

GetLootRowName

function · ui · primitive

Address
0x4c2550 · 287 bytes, up to 0x4c266e
Signature
void __fastcall (char *dst, int size, int slot)
Meaning
Writes the money text or the suffix-aware item name of a loot slot, empty for guard failures
Confidence
verified, proof one
Finding
ui/loot#counting-and-guards

Finding: Counting and guards in ui: the loot window

Every accessor of the window except the count (0x4c22a0, 0x4c22e0, 0x4c2320, 0x4c2360, 0x4c23a0, 0x4c2440, 0x4c2460, 0x4c2550, 0x4c2670) takes a 0-based slot and applies the same guards: nothing is open, so the answer is empty; with money not zero, slot 0 is the coin row and every other slot drops by one; a position of 16 or more (unsigned) is empty. 0x4c2260, the count, is the position of the last row with an entry plus one, plus one when the money cell is nonzero, so a taken coin row (-1) still counts. The coin row has an entry only while the money is above 0.

The derivation is in the doc.

Callers 1

Callees 7

Calls and jumps by a bare address, from tables/calls.tsv.