mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 00:20:42 +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:
@@ -38,7 +38,7 @@
|
||||
|
||||
/datum/computer_file/program/alarm_monitor/engineering/New()
|
||||
..()
|
||||
alarm_handlers = list(atmosphere_alarm, camera_alarm, fire_alarm, power_alarm)
|
||||
alarm_handlers = list(GLOB.atmosphere_alarm, GLOB.camera_alarm, GLOB.fire_alarm, GLOB.power_alarm)
|
||||
|
||||
/datum/computer_file/program/alarm_monitor/security
|
||||
filename = "alarmmonitorsec"
|
||||
@@ -48,7 +48,7 @@
|
||||
|
||||
/datum/computer_file/program/alarm_monitor/security/New()
|
||||
..()
|
||||
alarm_handlers = list(camera_alarm, motion_alarm)
|
||||
alarm_handlers = list(GLOB.camera_alarm, GLOB.motion_alarm)
|
||||
|
||||
/datum/computer_file/program/alarm_monitor/proc/register_alarm(var/object, var/procName)
|
||||
for(var/datum/alarm_handler/AH in alarm_handlers)
|
||||
|
||||
Reference in New Issue
Block a user