code/global.dm => code/_global_vars/ (#17244)

* 1

* Full conversion

* .

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Selis
2025-04-21 05:55:25 -04:00
committed by GitHub
co-authored by Kashargul
parent 5d21a53dfa
commit 28e969778c
448 changed files with 1339 additions and 1346 deletions
+2 -2
View File
@@ -1,13 +1,13 @@
/*
Overview:
The connection_manager class stores connections in each cardinal direction on a turf.
The connection_manager class stores connections in each GLOB.cardinal direction on a turf.
It isn't always present if a turf has no connections, check if(connections) before using.
Contains procs for mass manipulation of connection data.
Class Vars:
NSEWUD - Connections to this turf in each cardinal direction.
NSEWUD - Connections to this turf in each GLOB.cardinal direction.
Class Procs:
+2 -2
View File
@@ -147,7 +147,7 @@ If it gains pressure too slowly, it may leak or just rupture instead of explodin
A.fire_act(air_contents, air_contents.temperature, air_contents.volume)
//spread
for(var/direction in cardinal)
for(var/direction in GLOB.cardinal)
var/turf/simulated/enemy_tile = get_step(my_tile, direction)
if(istype(enemy_tile))
@@ -186,7 +186,7 @@ If it gains pressure too slowly, it may leak or just rupture instead of explodin
qdel(src)
return
set_dir(pick(cardinal))
set_dir(pick(GLOB.cardinal))
var/datum/gas_mixture/air_contents = loc.return_air()
color = fire_color(air_contents.temperature)
+5 -5
View File
@@ -59,7 +59,7 @@
var/unconnected_dirs = check_dirs
#ifdef MULTIZAS
var/to_check = cornerdirsz
var/to_check = GLOB.cornerdirsz
#else
var/to_check = cornerdirs
#endif
@@ -69,7 +69,7 @@
if((dir & check_dirs) == dir)
//check that they are connected by the corner turf
var/connected_dirs = get_zone_neighbours(get_step(src, dir))
if(connected_dirs && (dir & reverse_dir[connected_dirs]) == dir)
if(connected_dirs && (dir & GLOB.reverse_dir[connected_dirs]) == dir)
unconnected_dirs &= ~dir //they are, so unflag the cardinals in question
//it is safe to remove src from the zone if all cardinals are connected by corner turfs
@@ -80,9 +80,9 @@
. = 0
if(istype(T) && T.zone)
#ifdef MULTIZAS
var/to_check = cardinalz
var/to_check = GLOB.cardinalz
#else
var/to_check = cardinal
var/to_check = GLOB.cardinal
#endif
for(var/dir in to_check)
var/turf/simulated/other = get_step(T, dir)
@@ -159,7 +159,7 @@
if(istype(unsim, /turf/simulated))
var/turf/simulated/sim = unsim
sim.open_directions |= reverse_dir[d]
sim.open_directions |= GLOB.reverse_dir[d]
if(HAS_VALID_ZONE(sim))