mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
Added mirrored manual T-valves
This commit is contained in:
@@ -48,6 +48,8 @@ Buildable meters
|
||||
#define PIPE_SCRUBBERS_DOWN 40
|
||||
#define PIPE_SUPPLY_CAP 41
|
||||
#define PIPE_SCRUBBERS_CAP 42
|
||||
///// Mirrored T-valve ~ because I couldn't be bothered re-sorting all of the defines
|
||||
#define PIPE_MTVALVEM 43
|
||||
|
||||
/obj/item/pipe
|
||||
name = "pipe"
|
||||
@@ -130,6 +132,8 @@ Buildable meters
|
||||
src.pipe_type = PIPE_PASSIVE_GATE
|
||||
else if(istype(make_from, /obj/machinery/atmospherics/unary/heat_exchanger))
|
||||
src.pipe_type = PIPE_HEAT_EXCHANGE
|
||||
else if(istype(make_from, /obj/machinery/atmospherics/tvalve/mirrored))
|
||||
src.pipe_type = PIPE_MTVALVEM
|
||||
else if(istype(make_from, /obj/machinery/atmospherics/tvalve))
|
||||
src.pipe_type = PIPE_MTVALVE
|
||||
else if(istype(make_from, /obj/machinery/atmospherics/pipe/manifold4w/visible/supply) || istype(make_from, /obj/machinery/atmospherics/pipe/manifold4w/hidden/supply))
|
||||
@@ -244,6 +248,7 @@ Buildable meters
|
||||
"scrubbers pipe down", \
|
||||
"supply pipe cap", \
|
||||
"scrubbers pipe cap", \
|
||||
"t-valve m", \
|
||||
)
|
||||
name = nlist[pipe_type+1] + " fitting"
|
||||
var/list/islist = list( \
|
||||
@@ -293,6 +298,7 @@ Buildable meters
|
||||
"cap", \
|
||||
"cap", \
|
||||
"cap", \
|
||||
"mtvalvem", \
|
||||
)
|
||||
icon_state = islist[pipe_type + 1]
|
||||
|
||||
@@ -369,9 +375,9 @@ Buildable meters
|
||||
return dir|flip|cw|acw
|
||||
if(PIPE_MANIFOLD, PIPE_SUPPLY_MANIFOLD, PIPE_SCRUBBERS_MANIFOLD)
|
||||
return flip|cw|acw
|
||||
if(PIPE_GAS_FILTER, PIPE_GAS_MIXER,PIPE_MTVALVE)
|
||||
if(PIPE_GAS_FILTER, PIPE_GAS_MIXER, PIPE_MTVALVE)
|
||||
return dir|flip|cw
|
||||
if(PIPE_GAS_FILTER_M, PIPE_GAS_MIXER_M)
|
||||
if(PIPE_GAS_FILTER_M, PIPE_GAS_MIXER_M, PIPE_MTVALVEM)
|
||||
return dir|flip|acw
|
||||
if(PIPE_GAS_MIXER_T)
|
||||
return dir|cw|acw
|
||||
@@ -925,6 +931,26 @@ Buildable meters
|
||||
V.node3.initialize()
|
||||
V.node3.build_network()
|
||||
|
||||
if(PIPE_MTVALVEM) //manual t-valve
|
||||
var/obj/machinery/atmospherics/tvalve/mirrored/V = new(src.loc)
|
||||
V.set_dir(dir)
|
||||
V.initialize_directions = pipe_dir
|
||||
if (pipename)
|
||||
V.name = pipename
|
||||
var/turf/T = V.loc
|
||||
V.level = T.intact ? 2 : 1
|
||||
V.initialize()
|
||||
V.build_network()
|
||||
if (V.node1)
|
||||
V.node1.initialize()
|
||||
V.node1.build_network()
|
||||
if (V.node2)
|
||||
V.node2.initialize()
|
||||
V.node2.build_network()
|
||||
if (V.node3)
|
||||
V.node3.initialize()
|
||||
V.node3.build_network()
|
||||
|
||||
if(PIPE_CAP)
|
||||
var/obj/machinery/atmospherics/pipe/cap/C = new(src.loc)
|
||||
C.set_dir(dir)
|
||||
@@ -1168,6 +1194,7 @@ Buildable meters
|
||||
#undef PIPE_VOLUME_PUMP
|
||||
#undef PIPE_OUTLET_INJECT
|
||||
#undef PIPE_MTVALVE
|
||||
#undef PIPE_MTVALVEM
|
||||
#undef PIPE_GAS_FILTER_M
|
||||
#undef PIPE_GAS_MIXER_T
|
||||
#undef PIPE_GAS_MIXER_M
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
<A href='?src=\ref[src];make=20;dir=1'>Pipe Cap</A><BR>
|
||||
<A href='?src=\ref[src];make=19;dir=1'>4-Way Manifold</A><BR>
|
||||
<A href='?src=\ref[src];make=18;dir=1'>Manual T-Valve</A><BR>
|
||||
<A href='?src=\ref[src];make=43;dir=1'>Manual T-Valve - Mirrored</A><BR>
|
||||
<A href='?src=\ref[src];make=21;dir=1'>Upward Pipe</A><BR>
|
||||
<A href='?src=\ref[src];make=22;dir=1'>Downward Pipe</A><BR>
|
||||
<b>Supply pipes:</b><BR>
|
||||
@@ -48,10 +49,10 @@
|
||||
<A href='?src=\ref[src];make=10;dir=1'>Scrubber</A><BR>
|
||||
<A href='?src=\ref[src];makemeter=1'>Meter</A><BR>
|
||||
<A href='?src=\ref[src];make=13;dir=1'>Gas Filter</A><BR>
|
||||
<A href='?src=\ref[src];make=23;dir=1'>Gas Filter-Mirrored</A><BR>
|
||||
<A href='?src=\ref[src];make=23;dir=1'>Gas Filter - Mirrored</A><BR>
|
||||
<A href='?src=\ref[src];make=14;dir=1'>Gas Mixer</A><BR>
|
||||
<A href='?src=\ref[src];make=25;dir=1'>Gas Mixer-Mirrored</A><BR>
|
||||
<A href='?src=\ref[src];make=24;dir=1'>Gas Mixer-T</A><BR>
|
||||
<A href='?src=\ref[src];make=25;dir=1'>Gas Mixer - Mirrored</A><BR>
|
||||
<A href='?src=\ref[src];make=24;dir=1'>Gas Mixer - T</A><BR>
|
||||
<A href='?src=\ref[src];make=26;dir=1'>Omni Gas Mixer</A><BR>
|
||||
<A href='?src=\ref[src];make=27;dir=1'>Omni Gas Filter</A><BR>
|
||||
<b>Heat exchange:</b><BR>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 26 KiB |
Reference in New Issue
Block a user