code/game/objects/structures/mystery_box.dm ![code/game/objects/structures/mystery_box.dm0](git.png)
MYSTERY_BOX_COOLING_DOWN | Closed, can't interact |
---|---|
MYSTERY_BOX_STANDBY | Closed, ready to be interacted with |
MYSTERY_BOX_CHOOSING | The box is choosing the prize |
MYSTERY_BOX_PRESENTING | The box is presenting the prize, for someone to claim it |
MBOX_DURATION_CHOOSING | How long the box takes to decide what the prize is |
MBOX_DURATION_PRESENTING | How long the box takes to start expiring the offer, though it's still valid until MBOX_DURATION_EXPIRING finishes. Timed to the sound clips |
MBOX_DURATION_EXPIRING | How long the box takes to start lowering the prize back into itself. When this finishes, the prize is gone |
MBOX_DURATION_STANDBY | How long after the box closes until it can go again |
/obj/structure/mystery_box/fishing | A fishing and pirate-themed mystery box, rarely found by fishing in the ocean, then another cannot be caught for the next 30 minutes. |
/obj/mystery_box_item | This represents the item that comes out of the box and is constantly changing before the box finishes deciding. Can probably be just an /atom or /movable. |
Define Details
MBOX_DURATION_CHOOSING ![code/game/objects/structures/mystery_box.dm 13](git.png)
How long the box takes to decide what the prize is
MBOX_DURATION_EXPIRING ![code/game/objects/structures/mystery_box.dm 17](git.png)
How long the box takes to start lowering the prize back into itself. When this finishes, the prize is gone
MBOX_DURATION_PRESENTING ![code/game/objects/structures/mystery_box.dm 15](git.png)
How long the box takes to start expiring the offer, though it's still valid until MBOX_DURATION_EXPIRING finishes. Timed to the sound clips
MBOX_DURATION_STANDBY ![code/game/objects/structures/mystery_box.dm 19](git.png)
How long after the box closes until it can go again
MYSTERY_BOX_CHOOSING ![code/game/objects/structures/mystery_box.dm 7](git.png)
The box is choosing the prize
MYSTERY_BOX_COOLING_DOWN ![code/game/objects/structures/mystery_box.dm 3](git.png)
Closed, can't interact
MYSTERY_BOX_PRESENTING ![code/game/objects/structures/mystery_box.dm 9](git.png)
The box is presenting the prize, for someone to claim it
MYSTERY_BOX_STANDBY ![code/game/objects/structures/mystery_box.dm 5](git.png)
Closed, ready to be interacted with