mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
Fixing an issue with wooden barricades / wood sheets interaction (#12360)
This commit is contained in:
@@ -70,14 +70,13 @@
|
|||||||
if(W.amount < 5)
|
if(W.amount < 5)
|
||||||
to_chat(user, "<span class='warning'>You need at least five wooden planks to make a wall!</span>")
|
to_chat(user, "<span class='warning'>You need at least five wooden planks to make a wall!</span>")
|
||||||
return
|
return
|
||||||
else
|
to_chat(user, "<span class='notice'>You start adding [I] to [src]...</span>")
|
||||||
to_chat(user, "<span class='notice'>You start adding [I] to [src]...</span>")
|
if(do_after(user, 50, target=src))
|
||||||
if(do_after(user, 50, target=src))
|
W.use(5)
|
||||||
W.use(5)
|
var/turf/T = get_turf(src)
|
||||||
var/turf/T = get_turf(src)
|
T.PlaceOnTop(/turf/closed/wall/mineral/wood/nonmetal)
|
||||||
T.PlaceOnTop(/turf/closed/wall/mineral/wood/nonmetal)
|
qdel(src)
|
||||||
qdel(src)
|
return
|
||||||
return
|
|
||||||
return ..()
|
return ..()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user