Fixed a bug with mirrored tvalves and pipecaps, made it possible to make pipecaps from pipe dispensor and removed insulated pipes from it because they dont do anything sepcial

This commit is contained in:
Miniature
2012-04-29 04:58:57 +09:30
parent 6287aecbeb
commit b45f4cbfd8
5 changed files with 43 additions and 4 deletions

View File

@@ -339,6 +339,18 @@ obj/machinery/atmospherics/tvalve
obj/machinery/atmospherics/tvalve/mirrored
icon_state = "tvalvem0"
New()
switch(dir)
if(NORTH)
initialize_directions = SOUTH|NORTH|WEST
if(SOUTH)
initialize_directions = NORTH|SOUTH|EAST
if(EAST)
initialize_directions = WEST|EAST|NORTH
if(WEST)
initialize_directions = EAST|WEST|SOUTH
..()
initialize()
var/node1_dir
var/node2_dir

View File

@@ -1015,10 +1015,22 @@ obj/machinery/atmospherics/pipe
volume = 35
dir = SOUTH
initialize_directions = SOUTH
initialize_directions = NORTH
var/obj/machinery/atmospherics/node
New()
..()
switch(dir)
if(SOUTH)
initialize_directions = NORTH
if(NORTH)
initialize_directions = SOUTH
if(WEST)
initialize_directions = EAST
if(EAST)
initialize_directions = WEST
hide(var/i)
if(level == 1 && istype(loc, /turf/simulated))
invisibility = i ? 101 : 0