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
@@ -131,7 +131,7 @@
normalize_dir()
var/node1_dir
for(var/direction in cardinal)
for(var/direction in GLOB.cardinal)
if(direction&initialize_directions)
if (!node1_dir)
node1_dir = direction
@@ -168,7 +168,7 @@
normalize_dir()
var/node1_dir
for(var/direction in cardinal)
for(var/direction in GLOB.cardinal)
if(direction&initialize_directions)
if (!node1_dir)
node1_dir = direction
+3 -3
View File
@@ -179,7 +179,7 @@
/obj/structure/portal_gateway/Bumped(mob/M as mob|obj)
if(ismob(M) && !(isliving(M)))
return //do not send ghosts, zshadows, ai eyes, etc
var/obj/effect/landmark/dest = pick(eventdestinations)
var/obj/effect/landmark/dest = pick(GLOB.eventdestinations)
if(dest)
M << 'sound/effects/phasein.ogg'
playsound(src, 'sound/effects/phasein.ogg', 100, 1)
@@ -211,7 +211,7 @@
if(istype(II,/obj/item/implant) || istype(II,/obj/item/nif))
continue
MI.drop_from_inventory(II, dest.loc)
var/obj/effect/landmark/finaldest = pick(awayabductors)
var/obj/effect/landmark/finaldest = pick(GLOB.awayabductors)
MI.forceMove(finaldest.loc)
sleep(1)
MI.Paralyse(10)
@@ -221,7 +221,7 @@
if(istype(I,/obj/item/implant) || istype(I,/obj/item/nif))
continue
L.drop_from_inventory(I, dest.loc)
var/obj/effect/landmark/finaldest = pick(awayabductors)
var/obj/effect/landmark/finaldest = pick(GLOB.awayabductors)
L.forceMove(finaldest.loc)
sleep(1)
L.Paralyse(10)
+3 -3
View File
@@ -120,7 +120,7 @@
return TRUE
// Else, we have to look in other directions
for(var/dir in cardinal - src.dir)
for(var/dir in GLOB.cardinal - src.dir)
B2 = get_step(src, dir)
T2 = GetAbove(B2)
if(!istype(B2) || !istype(T2))
@@ -293,7 +293,7 @@
return TRUE
// Else, we have to look in other directions
for(var/dir in cardinal - src.dir)
for(var/dir in GLOB.cardinal - src.dir)
B1 = get_step(src, turn(dir, 180))
O = GetAbove(B1)
if(!istype(B1) || !istype(O))
@@ -377,7 +377,7 @@
return
// Else, we have to look in other directions
for(var/dir in cardinal - src.dir)
for(var/dir in GLOB.cardinal - src.dir)
O = get_step(src, turn(dir, 180))
B1 = GetBelow(O)
if(!istype(B1) || !istype(O))
+1 -1
View File
@@ -190,7 +190,7 @@ GLOBAL_DATUM_INIT(openspace_backdrop_one_for_all, /atom/movable/openspace_backdr
/turf/simulated/floor/glass/proc/blend_icons()
var/new_junction = NONE
for(var/direction in cardinal) //Cardinal case first.
for(var/direction in GLOB.cardinal) //GLOB.cardinal case first.
var/turf/T = get_step(src, direction)
if(istype(T, type))
new_junction |= direction