Defined in: packages/engine/src/stores/wallet.ts:4
| Property |
Type |
Description |
coins |
number |
The player’s coins, copied each frame from the Wallet trait on her hero, or on the entity under the client’s authority where she is no hero. They live on that entity, so a new one starts at zero. |
spend |
(amount) => boolean |
Takes amount off the coins. False, and nothing changes, when they are short. |