mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 12:29:46 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user