CarryingOptions
What carrying() takes.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
capacity? |
number |
10 |
How many goods each character carries. |
checkCargoTransfer? |
CargoTransferCheck |
undefined |
The game’s rule for each good a transfer would move, before anything is written: a refusal leaves that good where it is and the rest move. It sees the goods of the same transfer it accepted already, so a boat that lacks four takes four of twelve. A pure read. |
guide? |
false | CargoGuideOptions |
undefined |
While a player’s own character carries goods, every station that takes one lights up and a path on the ground leads to the nearest, on the player’s page alone: false draws neither. |
kinds? |
readonly CargoHandle[] |
undefined |
The kinds the world installs, each from defineCargo, on the room and on every page. |
onCargoTransfer? |
CargoTransferCommit |
undefined |
Runs once per transfer inside its transaction, once its goods moved, for what the game keeps beside it: a sale’s coins, a contribution. A refusal or a throw puts the whole transfer back. |
returnOnRespawn? |
boolean |
true |
Whether a character’s goods go to recovery as the character respawns, as a fall into the sea does. |
stack? |
false | StackOptions |
undefined |
The stack every page draws on each carrier: false draws none, for a game that draws its own from useCarrier. |