Merge pull request #8531 from Spookerton/spkrtn/sys/global-agenda

updates all bare globals to use /global/ semantics, and all shared members to /static/
This commit is contained in:
Atermonera
2022-04-24 19:56:07 -08:00
committed by GitHub
240 changed files with 787 additions and 775 deletions

View File

@@ -9,7 +9,7 @@
active_power_usage = 5
var/interference = FALSE
var/icon/plant = null
var/global/list/possible_plants = list(
var/static/list/possible_plants = list(
"plant-1",
"plant-10",
"plant-09",

View File

@@ -17,7 +17,7 @@
// the specific order matters to get a usable icon_state, it is
// copied here so that, in the unlikely case that alldirs is changed,
// this continues to work.
var/global/list/tube_dir_list = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
var/static/list/tube_dir_list = list(NORTH, SOUTH, EAST, WEST, NORTHEAST, NORTHWEST, SOUTHEAST, SOUTHWEST)
// A place where tube pods stop, and people can get in or out.
@@ -520,7 +520,7 @@
// but it is probably safer to assume the existence of, and
// rely on, a sufficiently smart compiler/optimizer.
/obj/structure/transit_tube/proc/parse_dirs(text)
var/global/list/direction_table = list()
var/static/list/direction_table = list()
if(text in direction_table)
return direction_table[text]