Conversion many Globals to Managed Globals (Part 1) (#17121)

* Conversion of some Globals to Managed Globals

* Fix

* for later

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Selis
2025-04-17 14:16:53 -04:00
committed by GitHub
co-authored by Kashargul
parent 6a47a779d5
commit 21dcf0555b
229 changed files with 1227 additions and 1220 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
var/global/list/micro_tunnels = list()
GLOBAL_LIST_EMPTY(micro_tunnels)
/obj/structure/micro_tunnel
name = "mouse hole"
@@ -22,7 +22,7 @@ var/global/list/micro_tunnels = list()
/obj/structure/micro_tunnel/Initialize(mapload)
. = ..()
micro_tunnels.Add(src)
GLOB.micro_tunnels.Add(src)
if(name == initial(name))
var/area/our_area = get_area(src)
name = "[our_area.name] [name]"
@@ -37,7 +37,7 @@ var/global/list/micro_tunnels = list()
thing.forceMove(get_turf(src.loc))
thing.cancel_camera()
micro_tunnels.Remove(src)
GLOB.micro_tunnels.Remove(src)
return ..()
@@ -67,7 +67,7 @@ var/global/list/micro_tunnels = list()
for(var/datum/planet/P in SSplanets.planets)
if(myturf.z in P.expected_z_levels)
planet = P
for(var/obj/structure/micro_tunnel/t in micro_tunnels)
for(var/obj/structure/micro_tunnel/t in GLOB.micro_tunnels)
if(t == src)
continue
if(magic || t.magic)