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.
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
//4-Way Manifold
|
|
|
|
/obj/machinery/atmospherics/pipe/heat_exchanging/manifold4w
|
|
icon = 'icons/obj/atmospherics/pipes/he-manifold.dmi'
|
|
icon_state = "manifold4w"
|
|
|
|
name = "4-way pipe manifold"
|
|
desc = "A manifold composed of heat-exchanging pipes."
|
|
|
|
initialize_directions = NORTH|SOUTH|EAST|WEST
|
|
|
|
device_type = QUATERNARY
|
|
|
|
construction_type = /obj/item/pipe/quaternary
|
|
pipe_state = "he_manifold4w"
|
|
|
|
var/mutable_appearance/center
|
|
|
|
/obj/machinery/atmospherics/pipe/heat_exchanging/manifold4w/Initialize()
|
|
icon_state = ""
|
|
center = mutable_appearance(icon, "manifold4w_center")
|
|
return ..()
|
|
|
|
/obj/machinery/atmospherics/pipe/heat_exchanging/manifold4w/SetInitDirections()
|
|
initialize_directions = initial(initialize_directions)
|
|
|
|
/obj/machinery/atmospherics/pipe/heat_exchanging/manifold4w/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/manifold4w/layer1
|
|
piping_layer = 1
|
|
icon_state = "manifold4w-1"
|
|
|
|
/obj/machinery/atmospherics/pipe/heat_exchanging/manifold4w/layer3
|
|
piping_layer = 3
|
|
icon_state = "manifold4w-3"
|