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 20:16:53 +02:00
committed by GitHub
parent 6a47a779d5
commit 21dcf0555b
229 changed files with 1227 additions and 1220 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
/proc/get_overmap_sector(var/z)
if(using_map.use_overmap)
return map_sectors["[z]"]
return GLOB.map_sectors["[z]"]
else
return null
+2 -2
View File
@@ -148,7 +148,7 @@
/obj/effect/overmap/visitable/proc/register_z_levels()
for(var/zlevel in map_z)
map_sectors["[zlevel]"] = src
GLOB.map_sectors["[zlevel]"] = src
global.using_map.player_levels |= map_z
if(!in_space)
@@ -161,7 +161,7 @@
*/
/obj/effect/overmap/visitable/proc/unregister_z_levels()
map_sectors -= map_z
GLOB.map_sectors -= map_z
global.using_map.player_levels -= map_z
if(!in_space)
+1 -1
View File
@@ -1,5 +1,5 @@
//Dimension of overmap (squares 4 lyfe)
var/global/list/map_sectors = list()
GLOBAL_LIST_EMPTY(map_sectors)
/area/overmap
name = "System Map"