mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Fixes external turrets being unlinked from AI
This commit is contained in:
@@ -12,8 +12,12 @@
|
||||
/obj/structure/fusionreactor/Initialize()
|
||||
. = ..()
|
||||
depotarea = areaMaster
|
||||
if(depotarea)
|
||||
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
|
||||
|
||||
/obj/structure/fusionreactor/Destroy()
|
||||
if(istype(depotarea))
|
||||
|
||||
Reference in New Issue
Block a user