mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
* Layered pipes no longer stick out of their tile, also vents and other machines will always be in the middle of the tile. * Layer manifold now looks like an adaptor. * Some pipe mapping helpers were made into macros so maintianing things is easier. * Some unused icons were removed. * A lot of icons were added, so that pipe layering looks better. * Layer manifold renamed to layer adaptor and resprited to look more like an adaptor.
51 lines
1.3 KiB
Plaintext
51 lines
1.3 KiB
Plaintext
//3-Way Manifold
|
|
|
|
/obj/machinery/atmospherics/pipe/heat_exchanging/manifold
|
|
icon = 'icons/obj/atmospherics/pipes/he-manifold.dmi'
|
|
icon_state = "manifold-2"
|
|
|
|
name = "pipe manifold"
|
|
desc = "A manifold composed of regular pipes."
|
|
|
|
dir = SOUTH
|
|
initialize_directions = EAST|NORTH|WEST
|
|
|
|
device_type = TRINARY
|
|
|
|
construction_type = /obj/item/pipe/trinary
|
|
pipe_state = "he_manifold"
|
|
|
|
var/mutable_appearance/center
|
|
|
|
/obj/machinery/atmospherics/pipe/manifold/Initialize()
|
|
icon_state = ""
|
|
center = mutable_appearance(icon, "manifold_center")
|
|
return ..()
|
|
|
|
/obj/machinery/atmospherics/pipe/heat_exchanging/manifold/SetInitDirections()
|
|
initialize_directions = NORTH|SOUTH|EAST|WEST
|
|
initialize_directions &= ~dir
|
|
|
|
/obj/machinery/atmospherics/pipe/heat_exchanging/manifold/update_icon()
|
|
cut_overlays()
|
|
|
|
PIPING_LAYER_DOUBLE_SHIFT(center, piping_layer)
|
|
add_overlay(center)
|
|
|
|
//Add non-broken pieces
|
|
for(var/i in 1 to device_type)
|
|
if(nodes[i])
|
|
add_overlay( getpipeimage(icon, "pipe-[piping_layer]", get_dir(src, nodes[i])) )
|
|
|
|
update_layer()
|
|
update_alpha()
|
|
|
|
|
|
/obj/machinery/atmospherics/pipe/heat_exchanging/manifold/layer1
|
|
piping_layer = 1
|
|
icon_state = "manifold-1"
|
|
|
|
/obj/machinery/atmospherics/pipe/heat_exchanging/manifold/layer3
|
|
piping_layer = 3
|
|
icon_state = "manifold-3"
|