mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-27 05:56:28 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user