From 7c1b54450b7e63fcc171d8c5d85cc8e464fbff29 Mon Sep 17 00:00:00 2001 From: Ikarrus Date: Fri, 7 Jun 2013 23:40:51 -0600 Subject: [PATCH] Emagging the comms console gives you full functionality *Does not bypass the Bridge access requirement to use the console. It only upgrades authentication level from 1 to 2. This is done so that traitors won't need Captain access if they want to contact The Syndicate. --- code/game/machinery/computer/communications.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index 671435fc778..32cd4c92be2 100644 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -66,7 +66,7 @@ if (I && istype(I)) if(src.check_access(I)) authenticated = 1 - if(20 in I.access) + if((20 in I.access) || src.emagged) authenticated = 2 if("logout") authenticated = 0 @@ -264,8 +264,10 @@ src.updateUsrDialog() /obj/machinery/computer/communications/attackby(var/obj/I as obj, var/mob/user as mob) - if(istype(I,/obj/item/weapon/card/emag/)) + if((istype(I,/obj/item/weapon/card/emag/)) && (!src.emagged)) src.emagged = 1 + if(authenticated == 1) + authenticated = 2 user << "You scramble the communication routing circuits!" ..()