Skip to content

Commit

Permalink
bugfix: Fixed drill's infinite range (#6092)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell authored Oct 27, 2024
1 parent cc3b119 commit 364641b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/game/mecha/equipment/tools/mining_tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 364641b

Please sign in to comment.