Skip to content

five-on-it / packages/sim/src/bank

packages/sim/src/bank ​

The bank: beside a player's Cash (cash.ts, the purse the police's fines take from), a balance the fines never touch (SimWorld.bank, by client id, hashed). Cash machines stand on the level (@foi/world's spots of kind atm: a street's ATM, a bank's): on foot before one, the interaction key pays in every dollar of Cash but the machine's fee (BANK.fee), or, with no Cash to speak of, takes out a round sum (and the fee) when the balance has it. The client predicts it; the inventory message puts it right.

Variables ​

Functions ​