Revert "Fixes assorted mining toolspeed uses"

This reverts commit bd236dbdcf.
This commit is contained in:
atermonera
2022-03-29 16:15:46 -08:00
parent c7f1880394
commit 861154df4d
7 changed files with 68 additions and 60 deletions
+2 -1
View File
@@ -127,8 +127,9 @@
/obj/structure/simple_door/attackby(obj/item/weapon/W as obj, mob/user as mob)
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
if(istype(W,/obj/item/weapon/pickaxe))
var/obj/item/weapon/pickaxe/digTool = W
visible_message("<span class='danger'>[user] starts digging [src]!</span>")
if(do_after(user,40 / W.get_tool_quality(TOOL_MINING) * hardness) && src)
if(do_after(user,digTool.digspeed*hardness) && src)
visible_message("<span class='danger'>[user] finished digging [src]!</span>")
Dismantle()
else if(istype(W,/obj/item/weapon)) //not sure, can't not just weapons get passed to this proc?