mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Merge pull request #735 from Ikarrus/comms
Emagging the comms console gives you full functionality
This commit is contained in:
@@ -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!"
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user