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

wires

Vars

assembliesList of attached assemblies.
colorsDictionary of colours to wire.
cut_wiresList of cut wires.
dictionary_keyKey that enables wire assignments to be common across different holders. If null, will use the holder_type as a key.
holderThe holder (atom that contains these wires).
holder_typeThe holder's typepath (used for sanity checks to make sure the holder is the appropriate type for these wire sets).
proper_nameThe display name for the wire set shown in station blueprints. Not shown in blueprints if randomize is TRUE or it's an item NT wouldn't know about (Explosives/Nuke). Also used in the hacking interface.
randomizeIf every instance of these wires should be random. Prevents wires from showing up in station blueprints.
studied_photosLazy assoc list of refs to mobs to refs to photos they have studied for wires
wiresList of all wires.

Procs

always_reveal_wireWhether the given wire should always be revealed.
can_reveal_wiresChecks whether wire assignments should be revealed.
emp_pulseCalled from /atom/proc/emp_act
on_holder_qdelCalled when holder is qdeleted for us to clean ourselves as not to leave any unlawful references.
try_study_photoAttempts to study a photo for blueprints.

Var Details

assemblies

List of attached assemblies.

colors

Dictionary of colours to wire.

cut_wires

List of cut wires.

dictionary_key

Key that enables wire assignments to be common across different holders. If null, will use the holder_type as a key.

holder

The holder (atom that contains these wires).

holder_type

The holder's typepath (used for sanity checks to make sure the holder is the appropriate type for these wire sets).

proper_name

The display name for the wire set shown in station blueprints. Not shown in blueprints if randomize is TRUE or it's an item NT wouldn't know about (Explosives/Nuke). Also used in the hacking interface.

randomize

If every instance of these wires should be random. Prevents wires from showing up in station blueprints.

studied_photos

Lazy assoc list of refs to mobs to refs to photos they have studied for wires

wires

List of all wires.

Proc Details

always_reveal_wire

Whether the given wire should always be revealed.

Intended to be overridden. Allows for forcing a wire's assignmenmt to always be revealed in the hacking interface. Arguments:

can_reveal_wires

Checks whether wire assignments should be revealed.

Returns TRUE if the wires should be revealed, FALSE otherwise. Currently checks for admin ghost AI, abductor multitool and blueprints. Arguments:

emp_pulse

Called from /atom/proc/emp_act

on_holder_qdel

Called when holder is qdeleted for us to clean ourselves as not to leave any unlawful references.

try_study_photo

Attempts to study a photo for blueprints.