machinery ![code/game/machinery/_machinery.dm 86](git.png)
Vars | |
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. |
Procs | |
AI_notify_hack | Alerts the AI that a hack is in progress. |
dump_inventory_contents | Drop every movable atom in the machine's contents list that is not a component_part. |
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 |
Var Details
appearance_power_state ![code/game/machinery/_machinery.dm 147](git.png)
What was our power state the last time we updated its appearance? TRUE for on, FALSE for off, -1 for never checked
atmos_processing ![code/game/machinery/_machinery.dm 154](git.png)
Boolean on whether this machines interact with atmos
is_operational ![code/game/machinery/_machinery.dm 152](git.png)
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:
- subset - If this is not null, only atoms that are also contained within the subset list will be dropped.
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:
- object (obj) The object to be moved in to the users hand.
- user (mob/living) The user to recive the object