From 364641b671d18d9efc2f3876433a745dd625d4b9 Mon Sep 17 00:00:00 2001 From: Vladisvell <73733747+Vladisvell@users.noreply.github.com> Date: Sun, 27 Oct 2024 20:50:43 +0500 Subject: [PATCH] bugfix: Fixed drill's infinite range (#6092) --- code/game/mecha/equipment/tools/mining_tools.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/game/mecha/equipment/tools/mining_tools.dm b/code/game/mecha/equipment/tools/mining_tools.dm index 0427747442d..4db22046082 100644 --- a/code/game/mecha/equipment/tools/mining_tools.dm +++ b/code/game/mecha/equipment/tools/mining_tools.dm @@ -16,6 +16,13 @@ var/drill_delay = 7 var/drill_level = DRILL_BASIC +/obj/item/mecha_parts/mecha_equipment/drill/action_checks(atom/target) + . = ..() + if(!.) + return + + return chassis.Adjacent(target) + /obj/item/mecha_parts/mecha_equipment/drill/action(atom/target) if(!action_checks(target)) return FALSE