Daedalus Dock - Modules - TypesDefine Details

code/game/objects/structures/mystery_box.dm

MYSTERY_BOX_COOLING_DOWNClosed, can't interact
MYSTERY_BOX_STANDBYClosed, ready to be interacted with
MYSTERY_BOX_CHOOSINGThe box is choosing the prize
MYSTERY_BOX_PRESENTINGThe box is presenting the prize, for someone to claim it
MBOX_DURATION_CHOOSINGHow long the box takes to decide what the prize is
MBOX_DURATION_PRESENTINGHow 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_EXPIRINGHow long the box takes to start lowering the prize back into itself. When this finishes, the prize is gone
MBOX_DURATION_STANDBYHow long after the box closes until it can go again
/obj/mystery_box_itemThis 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