Files
Bubberstation/code/modules/atmospherics/machinery/components/binary_devices/binary_devices.dm
SkyratBot 00f8ee2fc3 [MIRROR] fix devices sprites on layer 1 and 5 (#667)
* Hardsynced from upstream.

* fix devices sprites on layer 1 and 5 (#53382)

This atomized PR fixes the sprites for layer 1 and 5 of the following devices:
-scrubber
-unary vent
-passive vent
-portable connector
-filter filters don't work well on layer 1 and 5, so they get the axe
-mixer mixers don't work well on layer 1 and 5, so they get the axe
The how:
instead of just moving the node, we'll move the entire thing because sprites bad and can't fit

Co-authored-by: Ghilker <42839747+Ghilker@users.noreply.github.com>
2020-09-07 17:22:20 +02:00

26 lines
752 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, SOUTH)
initialize_directions = NORTH|SOUTH
if(EAST, WEST)
initialize_directions = EAST|WEST
/obj/machinery/atmospherics/components/binary/getNodeConnects()
return list(turn(dir, 180), dir)
///Used by binary devices to set what the offset will be for each layer
/obj/machinery/atmospherics/components/binary/proc/set_overlay_offset(var/pipe_layer)
switch(pipe_layer)
if(1, 3, 5)
return 1
if(2, 4)
return 2