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
@@ -40,7 +40,7 @@ PROCESSING_SUBSYSTEM_DEF(airflow)
target.airflow_process_delay = 0
target.airflow_speed = min(target.airflow_speed, 15)
target.airflow_speed -= vsc.airflow_speed_decay
target.airflow_speed -= GLOB.vsc.airflow_speed_decay
if (!target.airflow_skip_speedcheck)
if (target.airflow_speed > 7)
if (target.airflow_time++ >= target.airflow_speed - 7)
@@ -85,7 +85,7 @@ PROCESSING_SUBSYSTEM_DEF(airflow)
if(ismob(target))
var/mob/target_mob = target
if(target_mob.client)
target_mob:setMoveCooldown(vsc.airflow_mob_slowdown)
target_mob:setMoveCooldown(GLOB.vsc.airflow_mob_slowdown)
if (MC_TICK_CHECK)
return
@@ -100,7 +100,7 @@ PROCESSING_SUBSYSTEM_DEF(airflow)
var/tmp/airflow_skip_speedcheck
/atom/movable/proc/prepare_airflow(n)
if (!airflow_dest || airflow_speed < 0 || last_airflow > world.time - vsc.airflow_delay)
if (!airflow_dest || airflow_speed < 0 || last_airflow > world.time - GLOB.vsc.airflow_delay)
return FALSE
if (airflow_speed)
airflow_speed = n / max(get_dist(src, airflow_dest), 1)
@@ -1,4 +1,4 @@
var/global/list/psychic_ranks_to_strings = list("Psionically Sensitive", "Psionically Harmonious", "Psionic Apex", "Limitless")
GLOBAL_LIST_INIT(psychic_ranks_to_strings, list("Psionically Sensitive", "Psionically Harmonious", "Psionic Apex", "Limitless"))
PROCESSING_SUBSYSTEM_DEF(psi)
name = "Psionics"