mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 00:55:20 +01:00
Fix egalitarian station not working on all airlocks (#91788)
Co-authored-by: san7890 <the@san7890.com>
(cherry picked from commit 9ab9bef187)
This commit is contained in:
@@ -336,9 +336,18 @@ ADMIN_VERB(secrets, R_NONE, "Secrets", "Abuse harder than you ever have before w
|
||||
if(!is_funmin)
|
||||
return
|
||||
SSblackbox.record_feedback("nested tally", "admin_secrets_fun_used", 1, list("Egalitarian Station"))
|
||||
for(var/obj/machinery/door/airlock/W as anything in SSmachines.get_machines_by_type_and_subtypes(/obj/machinery/door/airlock))
|
||||
if(is_station_level(W.z) && !istype(get_area(W), /area/station/command) && !istype(get_area(W), /area/station/commons) && !istype(get_area(W), /area/station/service) && !istype(get_area(W), /area/station/command/heads_quarters) && !istype(get_area(W), /area/station/security/prison))
|
||||
W.req_access = list()
|
||||
for(var/obj/machinery/door/airlock/airlock as anything in SSmachines.get_machines_by_type_and_subtypes(/obj/machinery/door/airlock))
|
||||
var/airlock_area = get_area(airlock)
|
||||
if(
|
||||
is_station_level(airlock.z) && \
|
||||
!istype(airlock_area, /area/station/command) && \
|
||||
!istype(airlock_area, /area/station/commons) && \
|
||||
!istype(airlock_area, /area/station/service) && \
|
||||
!istype(airlock_area, /area/station/command/heads_quarters) && \
|
||||
!istype(airlock_area, /area/station/security/prison) \
|
||||
)
|
||||
airlock.req_access = list()
|
||||
airlock.req_one_access = list()
|
||||
message_admins("[key_name_admin(holder)] activated Egalitarian Station mode")
|
||||
priority_announce("CentCom airlock control override activated. Please take this time to get acquainted with your coworkers.", null, SSstation.announcer.get_rand_report_sound())
|
||||
if("ancap")
|
||||
|
||||
Reference in New Issue
Block a user