diff --git a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm index 4a3c5b53ff..690164e265 100644 --- a/code/game/objects/structures/stool_bed_chair_nest/chairs.dm +++ b/code/game/objects/structures/stool_bed_chair_nest/chairs.dm @@ -275,6 +275,43 @@ icon_state = "pewend_right" base_icon = "pewend_right" +// Metal benches from Skyrat +/obj/structure/bed/chair/sofa/bench + name = "metal bench" + desc = "Almost as comfortable as waiting at a bus station for hours on end." + base_icon = "benchmiddle" + icon_state = "benchmiddle" + applies_material_colour = FALSE + color = null + var/padding_color = "#CC0000" + +/obj/structure/bed/chair/sofa/bench/Initialize() + . = ..() + var/mutable_appearance/MA + // If we're north-facing, metal goes above mob, padding overlay goes below mob. + if((dir & NORTH) && !corner_piece) + plane = MOB_PLANE + layer = ABOVE_MOB_LAYER + MA = mutable_appearance(icon, icon_state = "o[icon_state]", layer = BELOW_MOB_LAYER, plane = MOB_PLANE, appearance_flags = KEEP_APART|RESET_COLOR) + // Else just normal plane and layer for everything, which will be below mobs. + else + MA = mutable_appearance(icon, icon_state = "o[icon_state]", appearance_flags = KEEP_APART|RESET_COLOR) + MA.color = padding_color + add_overlay(MA) + +/obj/structure/bed/chair/sofa/bench/left + icon_state = "bench_left" + base_icon = "bench_left" + +/obj/structure/bed/chair/sofa/bench/right + icon_state = "bench_right" + base_icon = "bench_right" + +/obj/structure/bed/chair/sofa/bench/corner + icon_state = "benchcorner" + base_icon = "benchcorner" + //corner_piece = TRUE // These sprites work fine without the parent doing layer shenanigans + // Corporate sofa - one color fits all /obj/structure/bed/chair/sofa/corp name = "black leather sofa" diff --git a/icons/obj/sofas.dmi b/icons/obj/sofas.dmi index 21de5449ea..ebb7ad3374 100644 Binary files a/icons/obj/sofas.dmi and b/icons/obj/sofas.dmi differ