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
+5 -5
View File
@@ -68,7 +68,7 @@
update_dir()
/obj/machinery/conveyor/proc/update_dir()
if(!(dir in cardinal)) // Diagonal. Forwards is *away* from dir, curving to the right.
if(!(dir in GLOB.cardinal)) // Diagonal. Forwards is *away* from dir, curving to the right.
forwards = turn(dir, 45)
backwards = turn(dir, 135)
else
@@ -137,7 +137,7 @@
to_chat(user, "No input found. Please hang up and try your call again.")
return
id = input
for(var/obj/machinery/conveyor_switch/C in machines)
for(var/obj/machinery/conveyor_switch/C in GLOB.machines)
if(C.id == id)
C.conveyors |= src
return
@@ -230,7 +230,7 @@
/obj/machinery/conveyor_switch/LateInitialize()
conveyors = list()
for(var/obj/machinery/conveyor/C in machines)
for(var/obj/machinery/conveyor/C in GLOB.machines)
if(C.id == id)
conveyors += C
@@ -286,7 +286,7 @@
update()
// find any switches with same id as this one, and set their positions to match us
for(var/obj/machinery/conveyor_switch/S in machines)
for(var/obj/machinery/conveyor_switch/S in GLOB.machines)
if(S.id == src.id)
S.position = position
S.update()
@@ -318,7 +318,7 @@
return
id = input
conveyors = list() // Clear list so they aren't double added.
for(var/obj/machinery/conveyor/C in machines)
for(var/obj/machinery/conveyor/C in GLOB.machines)
if(C.id == id)
conveyors += C
return
@@ -23,7 +23,7 @@
ptype = newtype
dir = newdir
// Disposals handle "bent"/"corner" strangely, handle this specially.
if(ptype == DISPOSAL_PIPE_STRAIGHT && (dir in cornerdirs))
if(ptype == DISPOSAL_PIPE_STRAIGHT && (dir in GLOB.cornerdirs))
ptype = DISPOSAL_PIPE_CORNER
switch(dir)
if(NORTHWEST)
+3 -3
View File
@@ -936,7 +936,7 @@
// remains : set to leave broken pipe pieces in place
/obj/structure/disposalpipe/proc/broken(var/remains = 0)
if(remains)
for(var/D in cardinal)
for(var/D in GLOB.cardinal)
if(D & dpdir)
var/obj/structure/disposalpipe/broken/P = new(src.loc)
P.set_dir(D)
@@ -1641,7 +1641,7 @@
if(direction)
dirs = list( direction, turn(direction, -45), turn(direction, 45))
else
dirs = alldirs.Copy()
dirs = GLOB.alldirs.Copy()
src.streak(dirs)
@@ -1650,7 +1650,7 @@
if(direction)
dirs = list( direction, turn(direction, -45), turn(direction, 45))
else
dirs = alldirs.Copy()
dirs = GLOB.alldirs.Copy()
src.streak(dirs)