From 460bcd399d85a07c7b04f3a1b82fc36d8aed1a7d Mon Sep 17 00:00:00 2001 From: AnturK Date: Sat, 16 Jun 2018 07:51:44 +0200 Subject: [PATCH] Fixes attacking wooden walls (#38500) --- code/game/turfs/simulated/wall/mineral_walls.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/turfs/simulated/wall/mineral_walls.dm b/code/game/turfs/simulated/wall/mineral_walls.dm index 6687d35773..0715753643 100644 --- a/code/game/turfs/simulated/wall/mineral_walls.dm +++ b/code/game/turfs/simulated/wall/mineral_walls.dm @@ -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.