Skip to content

Commit

Permalink
pointing at an item in your hands shows it off (#6207)
Browse files Browse the repository at this point in the history
# About the pull request

just like that "Show held item" verb

# Explain why it's good for the game

it's hard for me personally to find that verb in object tab sooooo

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

yep...

</details>


# Changelog
:cl:
qol: Pointing at an item in your hands shows it off.
/:cl:

---------

Co-authored-by: Drathek <[email protected]>
Co-authored-by: fira <[email protected]>
  • Loading branch information
3 people committed May 3, 2024
1 parent e7f59ee commit 364c141
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/modules/mob/living/carbon/human/human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1687,3 +1687,11 @@
INVOKE_ASYNC(target, TYPE_PROC_REF(/mob/living/carbon/human, regenerate_icons))
INVOKE_ASYNC(target, TYPE_PROC_REF(/mob/living/carbon/human, update_body), 1, 0)
INVOKE_ASYNC(target, TYPE_PROC_REF(/mob/living/carbon/human, update_hair))

/mob/living/carbon/human/point_to_atom(atom/A, turf/T)
if(isitem(A))
var/obj/item/item = A
if(item == get_active_hand() || item == get_inactive_hand())
item.showoff(src)
return TRUE
return ..()

0 comments on commit 364c141

Please sign in to comment.