CL request for LateInitialize()

This commit is contained in:
Kyep
2018-08-22 22:19:11 -07:00
parent 22c2648508
commit b0505002e2
+7 -5
View File
@@ -10,14 +10,16 @@
var/has_overloaded = FALSE
/obj/structure/fusionreactor/Initialize()
. = ..()
..()
depotarea = areaMaster
if(istype(depotarea))
depotarea.reactor = src
spawn(50) // Necessary since random spawners may take a second to spawn turrets in depot.
for(var/obj/machinery/porta_turret/syndicate/T in range(50, loc))
if(!istype(T.depotarea))
T.depotarea = depotarea
return INITIALIZE_HINT_LATELOAD
/obj/structure/fusionreactor/LateInitialize()
for(var/obj/machinery/porta_turret/syndicate/T in range(50, loc))
if(!istype(T.depotarea))
T.depotarea = depotarea
/obj/structure/fusionreactor/Destroy()
if(istype(depotarea))