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
@@ -26,7 +26,7 @@ GLOBAL_LIST_EMPTY(all_blobs)
update_icon()
if(!integrity)
integrity = max_integrity
set_dir(pick(cardinal))
set_dir(pick(GLOB.cardinal))
GLOB.all_blobs += src
consume_tile()
return ..()
@@ -142,7 +142,7 @@ GLOBAL_LIST_EMPTY(all_blobs)
/obj/structure/blob/proc/expand(turf/T = null, controller = null, expand_reaction = 1)
if(!T)
var/list/dirs = cardinal.Copy()
var/list/dirs = GLOB.cardinal.Copy()
for(var/i = 1 to 4)
var/dirn = pick(dirs)
dirs.Remove(dirn)
+2 -2
View File
@@ -189,7 +189,7 @@
/mob/observer/blob/proc/expand_blob(turf/T)
var/obj/structure/blob/B = null
var/turf/other_T = null
for(var/direction in cardinal)
for(var/direction in GLOB.cardinal)
other_T = get_step(T, direction)
if(other_T)
B = locate(/obj/structure/blob) in other_T
@@ -238,7 +238,7 @@
if(locate(/obj/structure/blob) in get_turf(L))
return FALSE // Already has a blob over them.
for(var/direction in cardinal)
for(var/direction in GLOB.cardinal)
var/turf/T = get_step(L, direction)
var/obj/structure/blob/B = locate(/obj/structure/blob) in T
if(B && B.overmind == src)