From 8e899a72ad31fb2f3d28c7e2e7b7782f41998c7f Mon Sep 17 00:00:00 2001 From: "n3ophyt3@gmail.com" Date: Sat, 4 Dec 2010 07:34:03 +0000 Subject: [PATCH] The roboticist terminal now requires you to have roboticist access to blow borgs. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@532 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/machinery/computer/robot.dm | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm index af6088dbee..1b3a5a327c 100644 --- a/code/game/machinery/computer/robot.dm +++ b/code/game/machinery/computer/robot.dm @@ -2,7 +2,7 @@ name = "Robotics Control" icon = 'computer.dmi' icon_state = "robot" - req_access = list(access_captain, access_robotics) + req_access = list(access_robotics) var/id = 0.0 var/temp = null @@ -168,13 +168,16 @@ if("2") screen = 2 else if (href_list["killbot"]) - var/mob/living/silicon/robot/R = locate(href_list["killbot"]) - if(R) - var/choice = input("Are you certain you wish to detonate [R.name]?") in list("Confirm", "Abort") - if(choice == "Confirm") - if(R) - message_admins("\blue [key_name_admin(usr)] detonated [R.name]!") - R.self_destruct() + if(src.allowed(usr)) + var/mob/living/silicon/robot/R = locate(href_list["killbot"]) + if(R) + var/choice = input("Are you certain you wish to detonate [R.name]?") in list("Confirm", "Abort") + if(choice == "Confirm") + if(R) + message_admins("\blue [key_name_admin(usr)] detonated [R.name]!") + R.self_destruct() + else + usr << "\red Access Denied." src.add_fingerprint(usr) src.updateUsrDialog()