mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Fixed constructed valves being dumb and not properly setting their initialize_directions to the proper value.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@414 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -250,11 +250,11 @@ Buildable meters
|
|||||||
if(4) // connector
|
if(4) // connector
|
||||||
var/obj/machinery/atmospherics/portables_connector/C = new( src.loc )
|
var/obj/machinery/atmospherics/portables_connector/C = new( src.loc )
|
||||||
C.dir = dir
|
C.dir = dir
|
||||||
C.New()
|
C.initialize_directions = dir
|
||||||
var/turf/T = C.loc
|
/* var/turf/T = C.loc
|
||||||
switch (T.intact)
|
switch (T.intact)
|
||||||
if(1) C.level = 2
|
if(1) V.level = 2
|
||||||
if(0) C.level = 1
|
if(0) V.level = 1*/
|
||||||
C.initialize()
|
C.initialize()
|
||||||
C.build_network()
|
C.build_network()
|
||||||
if (C.node)
|
if (C.node)
|
||||||
@@ -296,11 +296,11 @@ Buildable meters
|
|||||||
if(7) //unary vent
|
if(7) //unary vent
|
||||||
var/obj/machinery/atmospherics/unary/vent_pump/V = new( src.loc )
|
var/obj/machinery/atmospherics/unary/vent_pump/V = new( src.loc )
|
||||||
V.dir = dir
|
V.dir = dir
|
||||||
V.New()
|
V.initialize_directions = dir
|
||||||
var/turf/T = V.loc
|
/* var/turf/T = V.loc
|
||||||
switch (T.intact)
|
switch (T.intact)
|
||||||
if(1) V.level = 2
|
if(1) V.level = 2
|
||||||
if(0) V.level = 1
|
if(0) V.level = 1*/
|
||||||
V.initialize()
|
V.initialize()
|
||||||
V.build_network()
|
V.build_network()
|
||||||
if (V.node)
|
if (V.node)
|
||||||
@@ -311,17 +311,27 @@ Buildable meters
|
|||||||
if(8) //manual valve
|
if(8) //manual valve
|
||||||
var/obj/machinery/atmospherics/valve/V = new( src.loc)
|
var/obj/machinery/atmospherics/valve/V = new( src.loc)
|
||||||
V.dir = dir
|
V.dir = dir
|
||||||
V.New()
|
switch(dir)
|
||||||
var/turf/T = V.loc
|
if(NORTH)
|
||||||
|
V.initialize_directions = NORTH|SOUTH
|
||||||
|
if(SOUTH)
|
||||||
|
V.initialize_directions = NORTH|SOUTH
|
||||||
|
if(EAST)
|
||||||
|
V.initialize_directions = EAST|WEST
|
||||||
|
if(WEST)
|
||||||
|
V.initialize_directions = EAST|WEST
|
||||||
|
/* var/turf/T = V.loc
|
||||||
switch (T.intact)
|
switch (T.intact)
|
||||||
if(1) V.level = 2
|
if(1) V.level = 2
|
||||||
if(0) V.level = 1
|
if(0) V.level = 1*/
|
||||||
V.initialize()
|
V.initialize()
|
||||||
V.build_network()
|
V.build_network()
|
||||||
if (V.node1)
|
if (V.node1)
|
||||||
|
// world << "[V.node1.name] is connected to valve, forcing it to update its nodes."
|
||||||
V.node1.initialize()
|
V.node1.initialize()
|
||||||
V.node1.build_network()
|
V.node1.build_network()
|
||||||
if (V.node2)
|
if (V.node2)
|
||||||
|
// world << "[V.node2.name] is connected to valve, forcing it to update its nodes."
|
||||||
V.node2.initialize()
|
V.node2.initialize()
|
||||||
V.node2.build_network()
|
V.node2.build_network()
|
||||||
|
|
||||||
@@ -329,10 +339,10 @@ Buildable meters
|
|||||||
var/obj/machinery/atmospherics/binary/pump/P = new(src.loc)
|
var/obj/machinery/atmospherics/binary/pump/P = new(src.loc)
|
||||||
P.dir = dir
|
P.dir = dir
|
||||||
P.New()
|
P.New()
|
||||||
var/turf/T = P.loc
|
/* var/turf/T = P.loc
|
||||||
switch (T.intact)
|
switch (T.intact)
|
||||||
if(1) P.level = 2
|
if(1) P.level = 2
|
||||||
if(0) P.level = 1
|
if(0) P.level = 1*/
|
||||||
P.initialize()
|
P.initialize()
|
||||||
P.build_network()
|
P.build_network()
|
||||||
if (P.node1)
|
if (P.node1)
|
||||||
@@ -346,11 +356,11 @@ Buildable meters
|
|||||||
if(10) //scrubber
|
if(10) //scrubber
|
||||||
var/obj/machinery/atmospherics/unary/vent_scrubber/S = new(src.loc)
|
var/obj/machinery/atmospherics/unary/vent_scrubber/S = new(src.loc)
|
||||||
S.dir = dir
|
S.dir = dir
|
||||||
S.New()
|
S.initialize_directions = dir
|
||||||
var/turf/T = S.loc
|
/* var/turf/T = S.loc
|
||||||
switch (T.intact)
|
switch (T.intact)
|
||||||
if(1) S.level = 2
|
if(1) V.level = 2
|
||||||
if(0) S.level = 1
|
if(0) V.level = 1*/
|
||||||
S.initialize()
|
S.initialize()
|
||||||
S.build_network()
|
S.build_network()
|
||||||
if (S.node)
|
if (S.node)
|
||||||
|
|||||||
Reference in New Issue
Block a user