mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user