Fixes attacking wooden walls (#38500)

This commit is contained in:
AnturK
2018-06-16 07:51:44 +02:00
committed by letterjay
parent 4780f3a20b
commit 460bcd399d
@@ -134,8 +134,8 @@
canSmoothWith = list(/turf/closed/wall/mineral/wood, /obj/structure/falsewall/wood, /turf/closed/wall/mineral/wood/nonmetal)
/turf/closed/wall/mineral/wood/attackby(obj/item/W, mob/user)
var/duration = (48/W.force) * 2 //In seconds, for now.
if(W.sharpness)
if(W.sharpness && W.force)
var/duration = (48/W.force) * 2 //In seconds, for now.
if(istype(W, /obj/item/hatchet) || istype(W, /obj/item/twohanded/fireaxe))
duration /= 4 //Much better with hatchets and axes.
if(do_after(user, duration*10, target=src)) //Into deciseconds.