s_cursorMoney
global · ui
- Address
0xb4e2f0· 4 bytes, up to0xb4e2f3- Type
uint32_t- Meaning
- Holds the copper amount of the money payload
- Confidence
- verified, proof one
- Finding
- ui/cursormoney#the-money-payload
Finding: The money payload in ui: the money cursor
0x494cc0(amount) puts money on the cursor, or takes it off for 0. It does nothing while the player has no
control, and nothing for 0 unless the cursor holds money. Otherwise it clears the cursor with ClearCursor(1, 1),
which signals CURSOR_UPDATE while the cursor is already empty. For a nonzero amount it then stores the amount, sets
the kind to 2, plays LOOTWINDOWCOINSOUND, sets the coin picture, and signals PLAYER_MONEY. No second
CURSOR_UPDATE follows, so a handler of that event sees no money on the cursor. Holding money and picking up
more first runs the money arm of the clear, so the event order is the sound, PLAYER_MONEY, CURSOR_UPDATE, then
the sound and PLAYER_MONEY of the new payload.
The derivation is in the doc.