Turn more unmanaged global vars into GLOB (#20446)

Turned a ton of unmanaged globals into managed globals.
Refactored some UT output.
Removed some unused things, including vars.
Added a test to ensure people don't keep adding new unmanaged vars.
This commit is contained in:
Fluffy
2025-02-17 23:34:02 +00:00
committed by GitHub
parent eff1fb22de
commit 7265630dde
377 changed files with 1893 additions and 2288 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
var/list/dreams = list(
GLOBAL_LIST_INIT(dreams, list(
"an ID card","a bottle","a familiar face","a crewmember","a toolbox","a security officer","the captain",
"voices from all around","deep space","a doctor","the engine","a traitor","an ally","darkness",
"light","a scientist","a monkey","a catastrophe","a loved one","a gun","warmth","freezing","the sun",
@@ -12,14 +12,14 @@ var/list/dreams = list(
"the chemist","the Machinist","the chef","the bartender","the chaplain","the librarian","a mouse","an ert member",
"a beach","the holodeck","a smokey room","a voice","the cold","a mouse","an operating table","the bar","the rain","a skrell",
"a unathi","a tajaran","the ai core","the mining station","the research station","a beaker of strange liquid"
)
))
/mob/living/carbon/proc/dream()
dreaming = 1
spawn(0)
for(var/i = rand(1,4),i > 0, i--)
to_chat(src, SPAN_NOTICE("<i>... [pick(dreams)] ...</i>"))
to_chat(src, SPAN_NOTICE("<i>... [pick(GLOB.dreams)] ...</i>"))
sleep(rand(40,70))
if(paralysis <= 0)
break