Cleans up a lot of globals a few other vars (#23246)

* i hate globals i hate globals

* more fucking of these

* sirryan review
This commit is contained in:
Contrabang
2023-12-06 10:30:41 -05:00
committed by GitHub
parent 8046d5b267
commit c8dce33a8a
42 changed files with 11 additions and 157 deletions
@@ -1,6 +1,5 @@
GLOBAL_LIST_EMPTY(ts_ckey_blacklist)
GLOBAL_VAR_INIT(ts_count_dead, 0)
GLOBAL_VAR_INIT(ts_count_alive_awaymission, 0)
GLOBAL_VAR_INIT(ts_count_alive_station, 0)
GLOBAL_VAR_INIT(ts_death_last, 0)
GLOBAL_VAR_INIT(ts_death_window, 9000) // 15 minutes
-6
View File
@@ -66,12 +66,6 @@
if((ckey in GLOB.de_admins) || (ckey in GLOB.de_mentors))
client.verbs += /client/proc/readmin
//Clear ability list and update from mob.
client.verbs -= GLOB.ability_verbs
if(abilities)
client.verbs |= abilities
client.update_active_keybindings()
//HUD updates (antag hud, etc)
-1
View File
@@ -403,7 +403,6 @@
return 0
//converts intent-strings into numbers and back
GLOBAL_LIST_INIT(intents, list(INTENT_HELP,INTENT_DISARM,INTENT_GRAB,INTENT_HARM))
/proc/intent_numeric(argument)
if(istext(argument))
switch(argument)
-1
View File
@@ -54,7 +54,6 @@
var/lastpuke = 0
var/can_strip = TRUE
var/list/languages = list() // For speaking/listening.
var/list/abilities = list() // For species-derived or admin-given powers.
var/list/speak_emote = list("says") // Verbs used when speaking. Defaults to 'say' if speak_emote is null.
var/emote_type = EMOTE_VISIBLE // Define emote default type, 1 for seen emotes, 2 for heard emotes
var/name_archive //For admin things like possession