GetLootRowCount
function · ui · primitive
- Address
0x4c2260· 61 bytes, up to0x4c229c- Signature
int __stdcall ()- Meaning
- Returns the position of the last occupied loot row plus one, plus one while the money cell is set
- 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 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.