From f8d33fef1a67d5f31c77587b1f5d0883961226d0 Mon Sep 17 00:00:00 2001 From: muchatras Date: Sat, 15 Nov 2025 12:00:10 -0500 Subject: [PATCH] fixes spraycans left-click (#93932) ## About The Pull Request The spraycans were rendered unable to paint some items via left-click, it forced the use of right-click which paints all over the object instead of primary parts. ## Why It's Good For The Game Crayons are available everywhere to rename stuff, the spraycan left-click recoloring shouldn't have vanished so soon Here's an example: The regular det's revolver: image Spraycan left-click: image Spraycan right-click: image And crayons/pen can still be used to change description and name. ## Changelog :cl: fix: fixed the spraycan left-click /:cl: --- code/game/objects/items/crayons.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/crayons.dm b/code/game/objects/items/crayons.dm index 07938d1d0d8..60807861d5d 100644 --- a/code/game/objects/items/crayons.dm +++ b/code/game/objects/items/crayons.dm @@ -215,8 +215,10 @@ drawtype = pick(all_drawables) AddElement(/datum/element/venue_price, FOOD_PRICE_EXOTIC) - AddElement(/datum/element/tool_renaming) - if(can_change_colour) + //This makes sure that spraycans do not rename stuff instead of painting + if(!can_change_colour) + AddElement(/datum/element/tool_renaming) + else AddComponent(/datum/component/palette, AVAILABLE_SPRAYCAN_SPACE, paint_color) refill()