From ffca5efe81c5ac507fae8a2f4c8deda4b5663120 Mon Sep 17 00:00:00 2001 From: EnterTheJake <102721711+EnterTheJake@users.noreply.github.com> Date: Sat, 27 Apr 2024 05:54:03 +0200 Subject: [PATCH] Fixes spraycan spamming the chat when you hover it. (#82883) ## About The Pull Request Adds a missing flag that was causing the chat to be spammed when you were too far away from the spraycan. ## Why It's Good For The Game Bugfix closes: https://github.com/tgstation/tgstation/issues/80880 ## Changelog :cl: fix: Spraycan no longer spams your chat when you mouse over it. /:cl: --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> --- code/game/objects/items/crayons.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm index 556d0d47646..6e4dbd233ba 100644 --- a/code/game/objects/items/crayons.dm +++ b/code/game/objects/items/crayons.dm @@ -775,7 +775,7 @@ /obj/item/toy/crayon/spraycan/add_context(atom/source, list/context, obj/item/held_item, mob/living/user) . = ..() - if(!user.can_perform_action(src, NEED_DEXTERITY|NEED_HANDS)) + if(!user.can_perform_action(src, NEED_DEXTERITY|NEED_HANDS|SILENT_ADJACENCY)) return . if(has_cap) @@ -786,7 +786,7 @@ /obj/item/toy/crayon/spraycan/add_item_context(datum/source, list/context, atom/target, mob/living/user) . = ..() - if(!user.can_perform_action(src, NEED_DEXTERITY|NEED_HANDS)) + if(!user.can_perform_action(src, NEED_DEXTERITY|NEED_HANDS|SILENT_ADJACENCY)) return . context[SCREENTIP_CONTEXT_LMB] = "Paint"