From 17f4b0f34fa5b26846e0d246a3daa5fea47750a2 Mon Sep 17 00:00:00 2001 From: Seris02 Date: Thu, 26 Mar 2020 17:46:41 +0800 Subject: [PATCH] I assume this works --- code/game/machinery/computer/robot.dm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/code/game/machinery/computer/robot.dm b/code/game/machinery/computer/robot.dm index 9356a8e933..2621616759 100644 --- a/code/game/machinery/computer/robot.dm +++ b/code/game/machinery/computer/robot.dm @@ -11,16 +11,19 @@ /obj/machinery/computer/robotics/proc/can_control(mob/user, mob/living/silicon/robot/R) if(!istype(R)) - return 0 + return FALSE if(isAI(user)) if (R.connected_ai != user) - return 0 + return FALSE if(iscyborg(user)) if (R != user) - return 0 + return FALSE if(R.scrambledcodes) - return 0 - return 1 + return FALSE + if (hasSiliconAccessInArea(user) && !issilicon(user)) + if (!Adjacent(user)) + return FALSE + return TRUE /obj/machinery/computer/robotics/ui_interact(mob/user) . = ..()