mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
[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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user