benilla-re systems structs docs

SetSendMailMoneyChecked

function · ui · orchestration

Address
0x4adbe0 · 132 bytes, up to 0x4adc63
Signature
uint32_t __fastcall (uint32_t amount)
Meaning
Stores the draft money when the player's coinage covers it, else shows ERR_NOT_ENOUGH_MONEY
Confidence
verified, proof one
Finding
ui/mailsend#money-and-cod

Finding: Money and COD in ui: composing and sending mail

SetSendMailMoney(amount) stores the amount when the active player's coinage covers it, signals SEND_MAIL_MONEY_CHANGED and returns 1; otherwise it shows ERR_NOT_ENOUGH_MONEY and returns nil. A negative amount fails the unsigned test. SetSendMailCOD(amount) stores the amount only while an item is attached, signals SEND_MAIL_COD_CHANGED and returns nothing. It tests no coinage and does not clear the money. GetSendMailMoney() and GetSendMailCOD() return the cells. A non-number raises Usage: SetSendMailMoney(amount) or Usage: SetSendMailCOD(amount).

The derivation is in the doc.

Callers 1

Callees 4

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