mystery_box_item ![code/game/objects/structures/mystery_box.dm 300](git.png)
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 | |
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 |
Procs | |
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 |
Var Details
claimable ![code/game/objects/structures/mystery_box.dm 313](git.png)
Whether this prize is currently claimable
parent_box ![code/game/objects/structures/mystery_box.dm 311](git.png)
The box that spawned this
selected_path ![code/game/objects/structures/mystery_box.dm 309](git.png)
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