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
@@ -35,7 +35,7 @@
if(amount < 15) return //lets suppose welder fuel is fairly thick and sticky. For something like water, 5 or less would be more appropriate.
var/turf/simulated/S = loc
if(!istype(S)) return
for(var/d in cardinal)
for(var/d in GLOB.cardinal)
var/turf/simulated/target = get_step(src,d)
var/turf/simulated/origin = get_turf(src)
if(origin.CanPass(src, target) && target.CanPass(src, origin))
@@ -39,7 +39,7 @@
return
var/placement_dir = get_dir(user, W)
if (!(placement_dir in cardinal))
if (!(placement_dir in GLOB.cardinal))
to_chat(user, span_warning("You must stand directly in front of the wall you wish to place that on."))
return
@@ -49,7 +49,7 @@
stuff_on_wall = 1
//crude, but will cover most cases. We could do stuff like check pixel_x/y but it's not really worth it.
for (var/dir in cardinal)
for (var/dir in GLOB.cardinal)
var/turf/T = get_step(W, dir)
if (locate(/obj/structure/sign/poster) in T)
stuff_on_wall = 1
@@ -45,7 +45,7 @@
return FALSE
var/placement_dir = get_dir(user, W)
if(!(placement_dir in cardinal))
if(!(placement_dir in GLOB.cardinal))
to_chat(user, span_warning("You must stand directly in front of the wall you wish to place that on."))
return FALSE
@@ -55,7 +55,7 @@
stuff_on_wall = 1
//crude, but will cover most cases. We could do stuff like check pixel_x/y but it's not really worth it.
for (var/dir in cardinal)
for (var/dir in GLOB.cardinal)
var/turf/T = get_step(W, dir)
if (locate(/obj/structure/sign/poster) in T)
stuff_on_wall = 1