mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
proper wood wall construction
This commit is contained in:
@@ -114,7 +114,7 @@
|
||||
to_chat(user, "<span class='notice'>You start adding [I] to [src]...</span>")
|
||||
if(do_after(user, 50, target = src))
|
||||
W.use(5)
|
||||
new /turf/simulated/wall/mineral/wood(get_turf(src))
|
||||
new /turf/simulated/wall/mineral/wood/nonmetal(get_turf(src))
|
||||
qdel(src)
|
||||
return
|
||||
return ..()
|
||||
|
||||
@@ -140,7 +140,23 @@
|
||||
sheet_type = /obj/item/stack/sheet/wood
|
||||
hardness = 70
|
||||
explosion_block = 0
|
||||
canSmoothWith = list(/turf/simulated/wall/mineral/wood, /obj/structure/falsewall/wood)
|
||||
canSmoothWith = list(/turf/simulated/wall/mineral/wood, /obj/structure/falsewall/wood, /turf/simulated/wall/mineral/wood/nonmetal)
|
||||
|
||||
/turf/simulated/wall/mineral/wood/attackby(obj/item/W, mob/user)
|
||||
if(W.sharp && 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.
|
||||
dismantle_wall(FALSE, FALSE)
|
||||
return
|
||||
return ..()
|
||||
|
||||
/turf/simulated/wall/mineral/wood/nonmetal
|
||||
desc = "A solidly wooden wall. It's a bit weaker than a wall made with metal."
|
||||
girder_type = /obj/structure/barricade/wooden
|
||||
hardness = 50
|
||||
canSmoothWith = list(/turf/simulated/wall/mineral/wood, /obj/structure/falsewall/wood, /turf/simulated/wall/mineral/wood/nonmetal)
|
||||
|
||||
/turf/simulated/wall/mineral/iron
|
||||
name = "rough metal wall"
|
||||
|
||||
Reference in New Issue
Block a user