From f91ac35a8b1d24442387f5cb8a1b7fe8d09d3655 Mon Sep 17 00:00:00 2001 From: Paxilmaniac <82386923+Paxilmaniac@users.noreply.github.com> Date: Fri, 13 Dec 2024 20:34:57 -0600 Subject: [PATCH] makes resin sprayers use the right interact with atom proc (#88432) ## About The Pull Request Changes resin sprayers to do all their behavior on ranged_interact_with_atom rather than interact_with_atom, which makes resin sprayers actually do their intended behavior if you click on any tile more than one away from you. ## Why It's Good For The Game Resin sprayers don't work at all unless you click a tile next to you without this. ## Changelog :cl: fix: Fixes resin sprayers not working if the target is more than one tile away from you /:cl: --- code/game/objects/items/tanks/watertank.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/objects/items/tanks/watertank.dm b/code/game/objects/items/tanks/watertank.dm index 1c23937d2b5..eba0bc82054 100644 --- a/code/game/objects/items/tanks/watertank.dm +++ b/code/game/objects/items/tanks/watertank.dm @@ -290,6 +290,9 @@ /obj/item/extinguisher/mini/nozzle/interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers) if(AttemptRefill(interacting_with, user)) return NONE + return ..() + +/obj/item/extinguisher/mini/nozzle/ranged_interact_with_atom(atom/interacting_with, mob/living/user, list/modifiers) if(nozzle_mode == EXTINGUISHER) return ..()