nukes some unmanaged global variables (probably merge this fast as it touches a hundred+ files) (#2829)

* replacements

* indents
This commit is contained in:
silicons
2021-03-07 19:01:45 -08:00
committed by GitHub
parent 39c009e736
commit 472ef33488
129 changed files with 233 additions and 244 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ var/list/blobs = list()
update_icon()
if(!integrity)
integrity = max_integrity
setDir(pick(cardinal))
setDir(pick(GLOB.cardinal))
blobs += src
consume_tile()
@@ -129,7 +129,7 @@ var/list/blobs = list()
/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
@@ -180,7 +180,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
@@ -213,7 +213,7 @@
continue // Already has a blob over them.
var/obj/structure/blob/B = null
for(var/direction in cardinal)
for(var/direction in GLOB.cardinal)
var/turf/T = get_step(L, direction)
B = locate(/obj/structure/blob) in T
if(B)