[MIRROR] Updates Bronze to be a lot better, fixes bugs and allows it to be used on grilles. (#3262)

* Updates Bronze to be a lot better, fixes bugs and allows it to be used on grilles. (#56696)

* Updates Bronze to be a lot better, fixes bugs and allows it to be used on grilles.

Co-authored-by: CRITAWAKETS <sebastienracicot@hotmail.com>
This commit is contained in:
SkyratBot
2021-02-10 11:55:12 +00:00
committed by GitHub
co-authored by CRITAWAKETS
parent 2b8c5a7c96
commit e33adb614d
7 changed files with 29 additions and 12 deletions
+3 -3
View File
@@ -165,7 +165,7 @@
qdel(src)
return
if(S.sheettype != "runed")
if(!S.has_unique_girder)
var/M = S.sheettype
if(state == GIRDER_DISPLACED)
var/falsewall_type = text2path("/obj/structure/falsewall/[M]")
@@ -424,8 +424,8 @@
transfer_fingerprints_to(B)
qdel(src)
else if(istype(W, /obj/item/stack/tile/bronze))
var/obj/item/stack/tile/bronze/B = W
else if(istype(W, /obj/item/stack/sheet/bronze))
var/obj/item/stack/sheet/bronze/B = W
if(B.get_amount() < 2)
to_chat(user, "<span class='warning'>You need at least two bronze sheets to build a bronze wall!</span>")
return
+3 -1
View File
@@ -159,7 +159,7 @@
return
//window placing begin
else if(is_glass_sheet(W))
else if(is_glass_sheet(W) || istype(W, /obj/item/stack/sheet/bronze))
if (!broken)
var/obj/item/stack/ST = W
if (ST.get_amount() < 2)
@@ -189,6 +189,8 @@
WD = new/obj/structure/window/shuttle(drop_location())
else if(istype(W, /obj/item/stack/sheet/plastitaniumglass))
WD = new/obj/structure/window/plasma/reinforced/plastitanium(drop_location())
else if(istype(W, /obj/item/stack/sheet/bronze))
WD = new/obj/structure/window/bronze/fulltile(drop_location())
else
WD = new/obj/structure/window/fulltile(drop_location()) //normal window
WD.setDir(dir_to_set)