Fixes attacking wooden walls (#38500)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user