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

airlock

Vars

airlock_stateThe current state of the airlock, used to construct the airlock overlays
assemblytypeThe type of door frame to drop during deconstruction
normalspeedControls if the door closes quickly or not. FALSE = the door autocloses in 1.5 seconds, TRUE = 8 seconds - see autoclose_in()
sealThe seal on the airlock
secondsElectrifiedHow many seconds remain until the door is no longer electrified. -1/MACHINE_ELECTRIFIED_PERMANENT = permanently electrified until someone fixes it.
shockedbyLogging for door electrification.

Procs

beforeShuttleMoveTurf move procs
get_note_stateReturns a string representing the type of note pinned to this airlock Arguments:
secure_closeForces the airlock to close and bolt
secure_openForces the airlock to unbolt and open
set_wiresGenerates the airlock's wire layout based on the current area the airlock resides in.
should_try_removing_electronicsReturns if a crowbar would remove the airlock electronics
try_remove_sealUsed when attempting to remove a seal from an airlock

Var Details

airlock_state

The current state of the airlock, used to construct the airlock overlays

assemblytype

The type of door frame to drop during deconstruction

normalspeed

Controls if the door closes quickly or not. FALSE = the door autocloses in 1.5 seconds, TRUE = 8 seconds - see autoclose_in()

seal

The seal on the airlock

secondsElectrified

How many seconds remain until the door is no longer electrified. -1/MACHINE_ELECTRIFIED_PERMANENT = permanently electrified until someone fixes it.

shockedby

Logging for door electrification.

Proc Details

beforeShuttleMove

Turf move procs

Area move procs

Machinery move procs

get_note_state

Returns a string representing the type of note pinned to this airlock Arguments:

secure_close

Forces the airlock to close and bolt

secure_open

Forces the airlock to unbolt and open

set_wires

Generates the airlock's wire layout based on the current area the airlock resides in.

Returns a new /datum/wires/ with the appropriate wire layout based on the airlock_wires of the area the airlock is in.

should_try_removing_electronics

Returns if a crowbar would remove the airlock electronics

try_remove_seal

Used when attempting to remove a seal from an airlock

Called when attacking an airlock with an empty hand, returns TRUE (there was a seal and we removed it, or failed to remove it) or FALSE (there was no seal) Arguments: