From 4394ad79d0cedb8099f9eb1208debb2041f9a413 Mon Sep 17 00:00:00 2001 From: Drsmail Date: Mon, 30 Dec 2024 19:55:22 +0300 Subject: [PATCH] Adds a way for crew to check if terminal has been hacked --- .../economy/economy_machinery/eftpos.dm | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/code/modules/economy/economy_machinery/eftpos.dm b/code/modules/economy/economy_machinery/eftpos.dm index ac58c1bd965b..261babed9675 100644 --- a/code/modules/economy/economy_machinery/eftpos.dm +++ b/code/modules/economy/economy_machinery/eftpos.dm @@ -249,23 +249,23 @@ /obj/item/eftpos/proc/check_user_position(mob/user) return Adjacent(user) -// A way to retrive inserted key. Only for antagonist +// A way to retrive inserted key /obj/item/eftpos/screwdriver_act(mob/user, obj/item/I) . = TRUE - if(!I.use_tool(src, user, 0, volume = I.tool_volume)) + user.visible_message("[capitalize(user.name)] starts disassembling [src] with a screwdriver!", \ + "You start using the screwdriver on [src].") + + if(!I.use_tool(src, user, 5 SECONDS, volume = I.tool_volume)) return - if(isliving(user) && user?.mind?.special_role) - if(isnull(eftpos_sindy_key)) - user.show_message("The terminal has no key.") - else - user.show_message("You manage to disconnect the key from the terminal.") - if(!usr.put_in_any_hand_if_possible(eftpos_sindy_key)) - eftpos_sindy_key.forceMove(get_turf(src)) - eftpos_sindy_key = null + if(isnull(eftpos_sindy_key)) + user.show_message("You remove the cover but find nothing of interest.") else - user.show_message("You are not sure what to do with the terminal and screwdriver.") + user.show_message("You discover a strange device. You carefully remove it and disconnect it from the terminal.") + if(!user.put_in_any_hand_if_possible(eftpos_sindy_key)) + eftpos_sindy_key.forceMove(get_turf(src)) + eftpos_sindy_key = null /obj/item/eftpos/register