Skip to content

Commit

Permalink
pointing at an item in your hands shows it off (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroBetel authored May 10, 2024
1 parent 1a3e991 commit 1ebbc7e
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 @@ -1660,3 +1660,11 @@
// clamped to max 500
if(dizziness > 100 && !is_dizzy)
INVOKE_ASYNC(src, PROC_REF(dizzy_process))

/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 1ebbc7e

Please sign in to comment.