Updates misc atmospherics machinery init and destroy.

Fixes Destroy() proc on zpipes and cryo cells gets rid of a `loc = X`
Updates remaining atmos machinery to use atmos_init
Fixes area atmos computer to use initialize() instead of spawn-in-New
This commit is contained in:
Leshana
2018-01-09 15:23:17 -05:00
parent 8114e4050a
commit 7cb2555dc7
3 changed files with 13 additions and 19 deletions
+7 -4
View File
@@ -26,8 +26,11 @@ obj/machinery/atmospherics/pipe/zpipe
level = 1
obj/machinery/atmospherics/pipe/zpipe/New()
/obj/machinery/atmospherics/pipe/zpipe/New()
..()
init_dir()
/obj/machinery/atmospherics/pipe/zpipe/init_dir()
switch(dir)
if(SOUTH)
initialize_directions = SOUTH
@@ -91,7 +94,7 @@ obj/machinery/atmospherics/pipe/zpipe/Destroy()
node1.disconnect(src)
if(node2)
node2.disconnect(src)
..()
. = ..()
obj/machinery/atmospherics/pipe/zpipe/pipeline_expansion()
return list(node1, node2)
@@ -122,7 +125,7 @@ obj/machinery/atmospherics/pipe/zpipe/up
name = "upwards pipe"
desc = "A pipe segment to connect upwards."
obj/machinery/atmospherics/pipe/zpipe/up/initialize()
obj/machinery/atmospherics/pipe/zpipe/up/atmos_init()
normalize_dir()
var/node1_dir
@@ -160,7 +163,7 @@ obj/machinery/atmospherics/pipe/zpipe/down
name = "downwards pipe"
desc = "A pipe segment to connect downwards."
obj/machinery/atmospherics/pipe/zpipe/down/initialize()
obj/machinery/atmospherics/pipe/zpipe/down/atmos_init()
normalize_dir()
var/node1_dir