From 364c141c10386d75145b9f0ea0864c2476639d6a Mon Sep 17 00:00:00 2001
From: AndroBetel <44546836+AndroBetel@users.noreply.github.com>
Date: Fri, 3 May 2024 09:08:12 +0300
Subject: [PATCH] pointing at an item in your hands shows it off (#6207)
# 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
Screenshots & Videos
yep...
# Changelog
:cl:
qol: Pointing at an item in your hands shows it off.
/:cl:
---------
Co-authored-by: Drathek <76988376+Drulikar@users.noreply.github.com>
Co-authored-by: fira
---
code/modules/mob/living/carbon/human/human.dm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm
index 4e71b178824d..bc7d11c25e1f 100644
--- a/code/modules/mob/living/carbon/human/human.dm
+++ b/code/modules/mob/living/carbon/human/human.dm
@@ -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 ..()