Skip to content

Commit

Permalink
[MIRROR] Loot panel no longer opens on your equipment (#2712) (#3525)
Browse files Browse the repository at this point in the history
* Loot panel no longer opens on your equipment (#83399)

## About The Pull Request

![image](https://github.com/tgstation/tgstation/assets/42397676/d074a920-716a-4108-bb98-275f2c0b46fb)
## Why It's Good For The Game
More straight forward functionality
## Changelog
:cl:
fix: Lootpanel no longer opens up when alt clicking objects on your
person
/:cl:

---------




* Loot panel no longer opens on your equipment

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: Jeremiah <[email protected]>
Co-authored-by: Fikou <[email protected]>
Co-authored-by: Kapu1178 <[email protected]>
Co-authored-by: NovaBot13 <[email protected]>
  • Loading branch information
6 people authored May 29, 2024
1 parent 78f2f63 commit a152e4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/_onclick/click_alt.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@
if(HAS_TRAIT(src, TRAIT_MOVE_VENTCRAWLING))
return

/// No loot panel if it's on our person
if(isobj(target) && isliving(src))
var/mob/living/user = src
if(target in user.get_all_gear())
to_chat(user, span_warning("You can't search for this item, it's already in your inventory! Take it off first."))
return

client.loot_panel.open(tile)


Expand Down

0 comments on commit a152e4e

Please sign in to comment.