benilla-re systems structs docs

TradeSetMoney

function · objectlayer · primitive

Address
0x5d4680 · 217 bytes, up to 0x5d4758
Signature
bool __fastcall (uint32_t copper)
Meaning
Sets the own money offer and sends it when the player's money covers it
Confidence
verified, proof one
Finding
objectlayer/trade#offering-money

Finding: Offering money in objectlayer: trade

Three senders put the own money offer, each as 0x11f with the new total as a u32, then add 1 to 0xc4bea8 and store the total in 0xc4be70. 0x5d4500 adds its argument to the offer; 0x5d4680 sets the offer to its argument; both first require an active player whose money (player field 1176) is at least the new total, and return 1 when sent, 0 when not. 0x5d4500 with 0 sends nothing and returns 1. 0x5d45f0 subtracts its argument and sends nothing when the argument is 0 or above the offer; it checks no money and returns nothing.

The derivation is in the doc.

Callers 1

Callees 5

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