mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 13:39:16 +01:00
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:
@@ -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
@@ -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
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user