mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-27 06:38:03 +01:00
nukes some unmanaged global variables (probably merge this fast as it touches a hundred+ files) (#2829)
* replacements * indents
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user