benilla-re systems structs docs

GetLootRowQuality

function · ui · primitive

Address
0x4c23a0 · 154 bytes, up to 0x4c2439
Signature
int __fastcall (int slot)
Meaning
Returns the cached quality of a loot slot's item, 0 for guard failures and the coin row, -1 on a miss
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 1

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