fixes all access helpers (#67503)

All access helpers added their access to req_access_txt instead of req_access, that fixes that, and cuts down on some unnecessary code.
This commit is contained in:
John Willard
2022-06-05 13:10:17 -04:00
committed by GitHub
parent 4c89f36dc8
commit 6e162225ae
+2 -9
View File
@@ -8,21 +8,14 @@
log_mapping("[src] at [AREACOORD(src)] tried to set req_one_access, but req_access was already set!")
else
var/list/access_list = get_access()
// Overwrite if there is no access set, otherwise add onto existing access
if(airlock.req_one_access == null)
airlock.req_one_access = access_list
else
airlock.req_one_access += access_list
airlock.req_one_access += access_list
/obj/effect/mapping_helpers/airlock/access/all/payload(obj/machinery/door/airlock/airlock)
if(airlock.req_one_access != null)
log_mapping("[src] at [AREACOORD(src)] tried to set req_one_access, but req_access was already set!")
else
var/list/access_list = get_access()
if(airlock.req_access == null)
airlock.req_access = access_list
else
airlock.req_access_txt += access_list
airlock.req_access += access_list
/obj/effect/mapping_helpers/airlock/access/proc/get_access()
var/list/access = list()