From b683f2a2213ff08a36dbc0417345bd4a86af2628 Mon Sep 17 00:00:00 2001 From: Vladisvell <73733747+Vladisvell@users.noreply.github.com> Date: Sat, 9 Mar 2024 13:18:10 +0500 Subject: [PATCH] bugfix: Mousedropping into inventory screen elements now considered to be pickup. Energy Katana no longer can be equipped without damaging wrists (#4108) * bugfix: Energy Katana no longer can be equipped without damage * added pickup proc call into putting in storage screen obj --- code/_onclick/hud/screen_objects.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/_onclick/hud/screen_objects.dm b/code/_onclick/hud/screen_objects.dm index 3bb9e41f6ee..25e0731707b 100644 --- a/code/_onclick/hud/screen_objects.dm +++ b/code/_onclick/hud/screen_objects.dm @@ -232,6 +232,7 @@ S.orient2hud(user) S.show_to(user) else // If it's not in the storage, try putting it inside + I.pickup(user) //Do not actually put in hands, but rather make some funny effects out of it S.attackby(I, user) return TRUE @@ -567,6 +568,8 @@ (slot_id == slot_r_hand && !user.put_in_r_hand(I, ignore_anim = FALSE))) return FALSE + I.pickup(user) + /obj/screen/inventory/hand var/image/active_overlay