Move global access procs to the mapping subsystem (#26664)

* Move global access procs to the mapping subsystem

* Apply requested changes
This commit is contained in:
Mikhail Dzianishchyts
2024-09-12 16:58:31 +00:00
committed by GitHub
parent d01fca6b26
commit a450ad9b9c
3 changed files with 48 additions and 48 deletions
@@ -38,9 +38,9 @@
/datum/weather/rad_storm/telegraph()
..()
status_alarm(TRUE)
pre_maint_all_access = GLOB.maint_all_access
if(!GLOB.maint_all_access)
make_maint_all_access()
pre_maint_all_access = SSmapping.maint_all_access
if(!SSmapping.maint_all_access)
SSmapping.make_maint_all_access()
/datum/weather/rad_storm/weather_act(mob/living/L)
if(!prob(60))
@@ -74,7 +74,7 @@
status_alarm(FALSE)
if(!pre_maint_all_access)
GLOB.minor_announcement.Announce("The radiation threat has passed. Please return to your workplaces. Door access resetting momentarily.", "Anomaly Alert")
addtimer(CALLBACK(SSweather, GLOBAL_PROC_REF(revoke_maint_all_access)), 10 SECONDS) // Bit of time to get out / break into somewhere.
addtimer(CALLBACK(SSmapping, TYPE_PROC_REF(/datum/controller/subsystem/mapping, revoke_maint_all_access)), 10 SECONDS) // Bit of time to get out / break into somewhere.
else
GLOB.minor_announcement.Announce("The radiation threat has passed. Please return to your workplaces.", "Anomaly Alert")