Update every initialize() proc to return an initialize hint.

* Yes, all of them.
* Also did a few corrections to redundant New() and broken Destroy() along the way
* Renamed the turf_initializer.initialize() proc to InitializeTurf to avoid confusion.
* Subsumed /area/proc/initialize into /atom/proc/initialize() - Made /area's LateInitialize to get same behavior as before.
This commit is contained in:
Leshana
2018-01-26 18:50:55 -05:00
parent ef73c090ab
commit cef001bf2a
114 changed files with 196 additions and 197 deletions
@@ -9,6 +9,7 @@
var/obj/effect/map/ship/linked
/obj/machinery/computer/engines/initialize()
. = ..()
linked = map_sectors["[z]"]
if (linked)
if (!linked.eng_control)
@@ -11,6 +11,7 @@
var/dy //coordinates
/obj/machinery/computer/helm/initialize()
. = ..()
linked = map_sectors["[z]"]
if (linked)
if(!linked.nav_control)
@@ -9,7 +9,7 @@
var/obj/effect/map/home //current destination
/obj/machinery/computer/shuttle_control/explore/initialize()
..()
. = ..()
home = map_sectors["[z]"]
shuttle_tag = "[shuttle_tag]-[z]"
if(!shuttle_controller.shuttles[shuttle_tag])
@@ -54,7 +54,7 @@
var/datum/ship_engine/thermal/controller
/obj/machinery/atmospherics/unary/engine/initialize()
..()
. = ..()
controller = new(src)
/obj/machinery/atmospherics/unary/engine/Destroy()
+1
View File
@@ -15,6 +15,7 @@
var/obj/machinery/computer/engines/eng_control
/obj/effect/map/ship/initialize()
. = ..()
for(var/obj/machinery/computer/engines/E in machines)
if (E.z == map_z)
eng_control = E