mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
fixes ert access
This commit is contained in:
@@ -218,6 +218,17 @@
|
||||
/proc/get_all_centcom_access()
|
||||
return list(access_cent_general, access_cent_thunder, access_cent_specops, access_cent_medical, access_cent_living, access_cent_storage, access_cent_teleporter, access_cent_captain)
|
||||
|
||||
/proc/get_ert_access(var/class)
|
||||
switch(class)
|
||||
if("commander")
|
||||
return get_all_centcom_access()
|
||||
if("sec")
|
||||
return list(access_cent_general, access_cent_specops)
|
||||
if("eng")
|
||||
return list(access_cent_general, access_cent_storage)
|
||||
if("med")
|
||||
return list(access_cent_general, access_cent_medical)
|
||||
|
||||
/proc/get_all_syndicate_access()
|
||||
return list(access_syndicate, access_syndicate)
|
||||
|
||||
|
||||
@@ -196,23 +196,22 @@ update_label("John Doe", "Clowny")
|
||||
icon_state = "centcom"
|
||||
registered_name = "Emergency Response Team Commander"
|
||||
assignment = "Emergency Response Team Commander"
|
||||
New() access = get_all_accesses()
|
||||
New() access = list(access_cent_captain, access_cent_specops, access_cent_storage, access_cent_medical)
|
||||
New() access = get_all_accesses()+get_ert_access("commander")
|
||||
|
||||
/obj/item/weapon/card/id/ert/Security
|
||||
registered_name = "Security Response Officer"
|
||||
assignment = "Security Response Officer"
|
||||
New() access = list(access_cent_specops)
|
||||
New() access = get_all_accesses()+get_ert_access("sec")
|
||||
|
||||
/obj/item/weapon/card/id/ert/Engineer
|
||||
registered_name = "Engineer Response Officer"
|
||||
assignment = "Engineer Response Officer"
|
||||
New() access = list(access_cent_storage)
|
||||
New() access = get_all_accesses()+get_ert_access("eng")
|
||||
|
||||
/obj/item/weapon/card/id/ert/Medical
|
||||
registered_name = "Medical Response Officer"
|
||||
assignment = "Medical Response Officer"
|
||||
New() access = list(access_cent_medical)
|
||||
New() access = get_all_accesses()+get_ert_access("med")
|
||||
|
||||
/obj/item/weapon/card/id/prisoner
|
||||
name = "prisoner ID card"
|
||||
|
||||
Reference in New Issue
Block a user