MAPPERS, TAKE NOTE

Improved my access change from last commit.
In addition to req_access_txt, there is now req_one_access_txt. As long as an ID has at least one access from the new list, it is able to open the airlock (assuming any access in the other list is also satisfied).

So, for instance, if you left req_access_txt blank, and put access_honk and access_silent into req_one_access_txt, the mime AND the clown would be able to open the airlock.


Fixed the advanced energy gun checking for failure constantly instead of only when recharging, and thus breaking stupidly quickly. Stop breaking my stuff, other coders. >:C

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2473 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
n3ophyt3
2011-11-01 18:17:22 +00:00
parent 2b29fb4ef3
commit 44135180f9
3 changed files with 37 additions and 16 deletions

View File

@@ -1650,12 +1650,14 @@
usr << browse(dat, "window=admin_log")
if("maint_access_brig")
for(var/obj/machinery/door/airlock/maintenance/M in world)
M.req_access = list(access_brig)
if (access_maint_tunnels in M.req_access)
M.req_access = list(access_brig)
message_admins("[key_name_admin(usr)] made all maint doors brig access-only.")
if("maint_access_engiebrig")
for(var/obj/machinery/door/airlock/maintenance/M in world)
M.req_all_accesses = 0
M.req_access = list(access_brig,access_engine)
if (access_maint_tunnels in M.req_access)
M.req_access = list()
M.req_one_access = list(access_brig,access_engine)
message_admins("[key_name_admin(usr)] made all maint doors engineering and brig access-only.")
if("infinite_sec")
var/datum/job/J = job_master.GetJob("Security Officer")