mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-06-13 02:03:33 +01:00
ae3740d84b
NO_POWER_USE IDLE_POWER_USE ACTIVE_POWER_USE holopads now correctly set use_power and the active_power_usage
32 lines
785 B
Plaintext
32 lines
785 B
Plaintext
/obj/machinery/atmospherics/components/binary
|
|
icon = 'icons/obj/atmospherics/components/binary_devices.dmi'
|
|
dir = SOUTH
|
|
initialize_directions = SOUTH|NORTH
|
|
use_power = IDLE_POWER_USE
|
|
device_type = BINARY
|
|
layer = GAS_PUMP_LAYER
|
|
|
|
/obj/machinery/atmospherics/components/binary/SetInitDirections()
|
|
switch(dir)
|
|
if(NORTH)
|
|
initialize_directions = NORTH|SOUTH
|
|
if(SOUTH)
|
|
initialize_directions = NORTH|SOUTH
|
|
if(EAST)
|
|
initialize_directions = EAST|WEST
|
|
if(WEST)
|
|
initialize_directions = EAST|WEST
|
|
/*
|
|
Iconnery
|
|
*/
|
|
/obj/machinery/atmospherics/components/binary/hide(intact)
|
|
update_icon()
|
|
|
|
..(intact)
|
|
/*
|
|
Housekeeping and pipe network stuff
|
|
*/
|
|
|
|
/obj/machinery/atmospherics/components/binary/getNodeConnects()
|
|
return list(turn(dir, 180), dir)
|