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

safe

Vars

current_tumbler_indexThe index in the tumblers list of the tumbler dial position that needs to be hit
dialThe position the dial is pointing to
explosion_countTough, but breakable if explosion counts reaches set value
lockedWhether the safe is locked or not
maxspaceThe maximum combined w_class of stuff in the safe
number_of_tumblersThe amount of tumblers that will be generated
openWhether the safe is open or not
spaceThe combined w_class of everything in the safe
tumblersThe list of tumbler dial positions that need to be hit

Procs

check_brokenChecks if safe is considered in a broken state for force-opening the safe
check_unlockedCalled every dial turn to determine whether the safe should unlock or not.
notify_userCalled every dial turn to provide feedback if possible.

Var Details

current_tumbler_index

The index in the tumblers list of the tumbler dial position that needs to be hit

dial

The position the dial is pointing to

explosion_count

Tough, but breakable if explosion counts reaches set value

locked

Whether the safe is locked or not

maxspace

The maximum combined w_class of stuff in the safe

number_of_tumblers

The amount of tumblers that will be generated

open

Whether the safe is open or not

space

The combined w_class of everything in the safe

tumblers

The list of tumbler dial positions that need to be hit

Proc Details

check_broken

Checks if safe is considered in a broken state for force-opening the safe

check_unlocked

Called every dial turn to determine whether the safe should unlock or not.

notify_user

Called every dial turn to provide feedback if possible.