Space Station 13 - Modules - TypesVar Details - Proc Details

machinery

Vars

appearance_power_stateWhat was our power state the last time we updated its appearance? TRUE for on, FALSE for off, -1 for never checked
atmos_processingBoolean on whether this machines interact with atmos
is_operationalA combination of factors such as having power, not being broken and so on. Boolean.

Procs

AI_notify_hackAlerts the AI that a hack is in progress.
dump_inventory_contentsDrop every movable atom in the machine's contents list that is not a component_part.
on_set_is_operationalCalled when the value of is_operational changes, so we can react to it.
on_stat_updateCalled when the value of stat changes, so we can react to it.
set_is_operationalCalled when we want to change the value of the is_operational variable. Boolean.
set_machine_statCalled when we want to change the value of the stat variable. Holds bitflags.
try_put_in_handPuts passed object in to user's hand

Var Details

appearance_power_state

What was our power state the last time we updated its appearance? TRUE for on, FALSE for off, -1 for never checked

atmos_processing

Boolean on whether this machines interact with atmos

is_operational

A combination of factors such as having power, not being broken and so on. Boolean.

Proc Details

AI_notify_hack

Alerts the AI that a hack is in progress.

Sends all AIs a message that a hack is occurring. Specifically used for space ninja tampering as this proc was originally in the ninja files. However, the proc may also be used elsewhere.

dump_inventory_contents

Drop every movable atom in the machine's contents list that is not a component_part.

Proc does not drop components and will skip over anything in the component_parts list. Call dump_contents() to drop all contents including components. Arguments:

on_set_is_operational

Called when the value of is_operational changes, so we can react to it.

on_stat_update

Called when the value of stat changes, so we can react to it.

set_is_operational

Called when we want to change the value of the is_operational variable. Boolean.

set_machine_stat

Called when we want to change the value of the stat variable. Holds bitflags.

try_put_in_hand

Puts passed object in to user's hand

Puts the passed object in to the users hand if they are adjacent. If the user is not adjacent then place the object on top of the machine.

Vars: