Skip to content

Commit

Permalink
bugfix: Mousedropping into inventory screen elements now considered t…
Browse files Browse the repository at this point in the history
…o be pickup. Energy Katana no longer can be equipped without damaging wrists (ss220-space#4108)

* bugfix: Energy Katana no longer can be equipped without damage

* added pickup proc call into putting in storage screen obj
  • Loading branch information
Vladisvell authored Mar 9, 2024
1 parent c6c5646 commit b683f2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/_onclick/hud/screen_objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b683f2a

Please sign in to comment.