mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 18:45:22 +01:00
[MIRROR] Builds logic that manages turfs contained inside an area [MDB IGNORE] (#17379)
* Builds logic that manages turfs contained inside an area * Mirror Conflict * Modular! Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: Funce <funce.973@gmail.com> Co-authored-by: tastyfish <crazychris32@gmail.com>
This commit is contained in:
@@ -151,19 +151,21 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/keycard_auth, 26)
|
||||
|
||||
GLOBAL_VAR_INIT(emergency_access, FALSE)
|
||||
/proc/make_maint_all_access()
|
||||
for(var/area/station/maintenance/A in world)
|
||||
for(var/obj/machinery/door/airlock/D in A)
|
||||
D.emergency = TRUE
|
||||
D.update_icon(ALL, 0)
|
||||
for(var/area/station/maintenance/A in GLOB.areas)
|
||||
for(var/turf/in_area as anything in A.get_contained_turfs())
|
||||
for(var/obj/machinery/door/airlock/D in in_area)
|
||||
D.emergency = TRUE
|
||||
D.update_icon(ALL, 0)
|
||||
minor_announce("Access restrictions on maintenance and external airlocks have been lifted.", "Attention! Station-wide emergency declared!",1)
|
||||
GLOB.emergency_access = TRUE
|
||||
SSblackbox.record_feedback("nested tally", "keycard_auths", 1, list("emergency maintenance access", "enabled"))
|
||||
|
||||
/proc/revoke_maint_all_access()
|
||||
for(var/area/station/maintenance/A in world)
|
||||
for(var/obj/machinery/door/airlock/D in A)
|
||||
D.emergency = FALSE
|
||||
D.update_icon(ALL, 0)
|
||||
for(var/area/station/maintenance/A in GLOB.areas)
|
||||
for(var/turf/in_area as anything in A.get_contained_turfs())
|
||||
for(var/obj/machinery/door/airlock/D in in_area)
|
||||
D.emergency = FALSE
|
||||
D.update_icon(ALL, 0)
|
||||
minor_announce("Access restrictions in maintenance areas have been restored.", "Attention! Station-wide emergency rescinded:")
|
||||
GLOB.emergency_access = FALSE
|
||||
SSblackbox.record_feedback("nested tally", "keycard_auths", 1, list("emergency maintenance access", "disabled"))
|
||||
|
||||
Reference in New Issue
Block a user