mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +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
@@ -41,7 +41,7 @@
|
||||
my_gen = null
|
||||
var/turf/current_loc = get_turf(src)
|
||||
. = ..()
|
||||
for(var/direction in cardinal)
|
||||
for(var/direction in GLOB.cardinal)
|
||||
var/turf/T = get_step(current_loc, direction)
|
||||
if(T)
|
||||
for(var/obj/effect/energy_field/F in T)
|
||||
@@ -116,7 +116,7 @@
|
||||
/obj/effect/energy_field/update_icon(var/update_neightbors = 0)
|
||||
cut_overlays()
|
||||
var/list/adjacent_shields_dir = list()
|
||||
for(var/direction in cardinal)
|
||||
for(var/direction in GLOB.cardinal)
|
||||
var/turf/T = get_step(src, direction)
|
||||
if(T) // Incase we somehow stepped off the map.
|
||||
for(var/obj/effect/energy_field/F in T)
|
||||
@@ -146,7 +146,7 @@
|
||||
i--
|
||||
if(i)
|
||||
spawn(2)
|
||||
for(var/direction in cardinal)
|
||||
for(var/direction in GLOB.cardinal)
|
||||
var/turf/T = get_step(src, direction)
|
||||
if(T) // Incase we somehow stepped off the map.
|
||||
for(var/obj/effect/energy_field/F in T)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
if(!enabled)
|
||||
return PROCESS_KILL
|
||||
|
||||
for(var/direction in cardinal)
|
||||
for(var/direction in GLOB.cardinal)
|
||||
var/turf/simulated/shielded_tile = get_step(get_turf(src), direction)
|
||||
for(var/obj/effect/shield/S in shielded_tile)
|
||||
// 10kJ per pulse, but gap in the shield lasts for longer than regular diffusers.
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
if(!enabled)
|
||||
return
|
||||
for(var/direction in cardinal)
|
||||
for(var/direction in GLOB.cardinal)
|
||||
var/turf/simulated/shielded_tile = get_step(get_turf(src), direction)
|
||||
for(var/obj/effect/shield/S in shielded_tile)
|
||||
S.diffuse(5)
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
|
||||
for(var/obj/effect/shield/SE in field_segments)
|
||||
var/adjacent_fields = 0
|
||||
for(var/direction in cardinal)
|
||||
for(var/direction in GLOB.cardinal)
|
||||
var/turf/T = get_step(SE, direction)
|
||||
var/obj/effect/shield/S = locate() in T
|
||||
if(S)
|
||||
@@ -181,7 +181,7 @@
|
||||
//Corners
|
||||
for(var/obj/effect/shield/S in corners)
|
||||
var/adjacent = corners[S]
|
||||
if(adjacent in cornerdirs)
|
||||
if(adjacent in GLOB.cornerdirs)
|
||||
do_corner_shield(S, adjacent) //Dir is adjacent fields direction
|
||||
else
|
||||
// Okay first a quick hack. If only one nonshield...
|
||||
@@ -203,7 +203,7 @@
|
||||
|
||||
else
|
||||
var/list/touchnonshield = list()
|
||||
for(var/direction in cornerdirs)
|
||||
for(var/direction in GLOB.cornerdirs)
|
||||
var/turf/T = get_step(S, direction)
|
||||
if(!isspace(T))
|
||||
touchnonshield += T
|
||||
|
||||
Reference in New Issue
Block a user