mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] code/global.dm => code/_global_vars/ (#10689)
Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
a7718c6177
commit
f04f992cfe
@@ -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:
|
||||
|
||||
|
||||
@@ -158,7 +158,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))
|
||||
@@ -197,7 +197,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)
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
var/unconnected_dirs = check_dirs
|
||||
|
||||
#ifdef MULTIZAS
|
||||
var/to_check = cornerdirsz
|
||||
var/to_check = GLOB.cornerdirsz
|
||||
#else
|
||||
var/to_check = cornerdirs
|
||||
#endif
|
||||
@@ -99,7 +99,7 @@
|
||||
/*
|
||||
//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
|
||||
*/
|
||||
var/turf/simulated/T = get_step(src, dir)
|
||||
@@ -120,9 +120,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)
|
||||
@@ -205,7 +205,7 @@
|
||||
if(istype(unsim, /turf/simulated))
|
||||
|
||||
var/turf/simulated/sim = unsim
|
||||
sim.open_directions |= GLOB.reverse_dir[d] // CHOMPEdit
|
||||
sim.open_directions |= GLOB.reverse_dir[d]
|
||||
|
||||
if(TURF_HAS_VALID_ZONE(sim)) // CHOMPEdit
|
||||
|
||||
|
||||
Reference in New Issue
Block a user