/tg/ Station 13 - Modules - TypesVar Details - Proc Details

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.

Vars

claimableWhether this prize is currently claimable
parent_boxThe box that spawned this
selected_pathThe currently selected item. Constantly changes while choosing, determines what is spawned if the prize is claimed, and its current icon

Procs

expire_animationSink back into the box
loop_icon_changesKeep changing the icon and selected path
start_animationStart pushing the prize up
update_random_iconanimate() isn't up to the task for queueing up icon changes, so this is the proc we call with timers to update our icon

Var Details

claimable

Whether this prize is currently claimable

parent_box

The box that spawned this

selected_path

The currently selected item. Constantly changes while choosing, determines what is spawned if the prize is claimed, and its current icon

Proc Details

expire_animation

Sink back into the box

loop_icon_changes

Keep changing the icon and selected path

start_animation

Start pushing the prize up

update_random_icon

animate() isn't up to the task for queueing up icon changes, so this is the proc we call with timers to update our icon