code/game/objects/structures/mystery_box.dm
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
How long the box takes to decide what the prize is
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_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_STANDBY
How long after the box closes until it can go again
MYSTERY_BOX_CHOOSING
The box is choosing the prize
MYSTERY_BOX_COOLING_DOWN
Closed, can't interact
MYSTERY_BOX_PRESENTING
The box is presenting the prize, for someone to claim it
MYSTERY_BOX_STANDBY
Closed, ready to be interacted with