benilla-re systems structs docs

LootHasContents

function · ui · primitive

Address
0x4c2a70 · 77 bytes, up to 0x4c2abc
Signature
int __stdcall ()
Meaning
Returns 1 when the loot source resolves and has money above 0 or an occupied row
Confidence
verified, proof one
Finding
ui/loot#taking-a-row-out
Test
ui::auto_loot_sweep_difftest

Finding: Taking a row out in ui: the loot window

0x4c1f00(wire slot) removes the row that carries that wire slot: it cancels the row's fetch if one is pending, zeroes the row's seven dwords and signals LOOT_SLOT_CLEARED (268) with the position in Lua terms (the row's array position plus one, plus one more when there is money). The array is not packed again, so the later rows keep their positions. When nothing is left (0x4c2a70) it closes the loot with release (0x48f200 with 1, 0). 0x4c2750 does the same for the coin row: it sets the money to -1, signals 268 with 1, and closes when nothing is left.

The derivation is in the doc.

Callers 6

Callees 1

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