From 93fc15e9066878b2f9805a9e0345be9cd7ffe903 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Sat, 11 Dec 2021 01:43:51 +0100 Subject: [PATCH] [MIRROR] Stops drones from using keycard authenticators [MDB IGNORE] (#9983) * Stops drones from using keycard authenticators (#63135) See title. Drones were able to use these due to their internal id card having captain access * Stops drones from using keycard authenticators Co-authored-by: RandomGamer123 <31096837+RandomGamer123@users.noreply.github.com> --- .../security_levels/keycard_authentication.dm | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/code/modules/security_levels/keycard_authentication.dm b/code/modules/security_levels/keycard_authentication.dm index bb609b4b69f..7e786f34f55 100644 --- a/code/modules/security_levels/keycard_authentication.dm +++ b/code/modules/security_levels/keycard_authentication.dm @@ -52,11 +52,14 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/keycard_auth, 26) return data /obj/machinery/keycard_auth/ui_status(mob/user) - if(isanimal(user)) - var/mob/living/simple_animal/A = user - if(!A.dextrous) - to_chat(user, span_warning("You are too primitive to use this device!")) - return UI_CLOSE + if(isdrone(user)) + return UI_CLOSE + if(!isanimal(user)) + return ..() + var/mob/living/simple_animal/A = user + if(!A.dextrous) + to_chat(user, span_warning("You are too primitive to use this device!")) + return UI_CLOSE return ..() /obj/machinery/keycard_auth/ui_act(action, params)