From fcf6bbd9ec86387c3bc561bf3053d3af712a9e20 Mon Sep 17 00:00:00 2001 From: Wayland-Smithy <64715958+Wayland-Smithy@users.noreply.github.com> Date: Wed, 30 Jun 2021 09:47:41 -0700 Subject: [PATCH] Fix cyborg locker right click (#59885) I guess silicon shared the old AltClick proc with other living, but that is not the case for secondary click. --- code/game/objects/structures/crates_lockers/closets.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/game/objects/structures/crates_lockers/closets.dm b/code/game/objects/structures/crates_lockers/closets.dm index 1f4b35790cb..a0e610690a9 100644 --- a/code/game/objects/structures/crates_lockers/closets.dm +++ b/code/game/objects/structures/crates_lockers/closets.dm @@ -402,6 +402,12 @@ if(user.Adjacent(src)) return attack_hand(user) +/obj/structure/closet/attack_robot_secondary(mob/user, list/modifiers) + if(!user.Adjacent(src)) + return SECONDARY_ATTACK_CONTINUE_CHAIN + togglelock(user) + return SECONDARY_ATTACK_CANCEL_ATTACK_CHAIN + // tk grab then use on self /obj/structure/closet/attack_self_tk(mob/user) if(attack_hand(user))