From 733122f33edbcd572b26d9db7bdf34ada21e19eb Mon Sep 17 00:00:00 2001 From: quotefox Date: Tue, 8 Mar 2022 11:50:23 +0000 Subject: [PATCH] thrones (built with 5 gold bars) --- .../objects/items/stacks/sheets/mineral.dm | 1 + .../objects/structures/beds_chairs/chair.dm | 49 +++++++++++++++++-- 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/code/game/objects/items/stacks/sheets/mineral.dm b/code/game/objects/items/stacks/sheets/mineral.dm index bf3b47a3d..3964eb423 100644 --- a/code/game/objects/items/stacks/sheets/mineral.dm +++ b/code/game/objects/items/stacks/sheets/mineral.dm @@ -210,6 +210,7 @@ GLOBAL_LIST_INIT(plasma_recipes, list ( \ GLOBAL_LIST_INIT(gold_recipes, list ( \ new/datum/stack_recipe("golden door", /obj/structure/mineral_door/gold, 10, one_per_turf = 1, on_floor = 1), \ + new/datum/stack_recipe("throne", /obj/structure/chair/throne, 5, one_per_turf = 1, on_floor = 1), \ new/datum/stack_recipe("gold tile", /obj/item/stack/tile/mineral/gold, 1, 4, 20), \ new/datum/stack_recipe("HoS Statue", /obj/structure/statue/gold/hos, 5, one_per_turf = 1, on_floor = 1), \ new/datum/stack_recipe("HoP Statue", /obj/structure/statue/gold/hop, 5, one_per_turf = 1, on_floor = 1), \ diff --git a/code/game/objects/structures/beds_chairs/chair.dm b/code/game/objects/structures/beds_chairs/chair.dm index 4d648d1ba..197556790 100644 --- a/code/game/objects/structures/beds_chairs/chair.dm +++ b/code/game/objects/structures/beds_chairs/chair.dm @@ -558,9 +558,52 @@ item_state = "stoolbrass_bar" origin_type = /obj/structure/chair/stool/bar/bronze -///////////////////////////////// -//End of Brass & Bronze stools!// -///////////////////////////////// +//////////////////////////////////////////////////// + +////////////////////////// +// Golden Seats // +////////////////////////// +/obj/structure/chair/throne + name = "throne" + desc = "A magnificent chair for the most magnificent people." + icon_state = "throne" + max_integrity = 250 + buildstacktype = /obj/item/stack/sheet/mineral/gold + buildstackamount = 5 + item_chair = null + color = "#ffffff" + var/mutable_appearance/armrest + +/obj/structure/chair/throne/proc/GetArmrest() + return mutable_appearance('icons/obj/chairs.dmi', "throne-arm") + +/obj/structure/chair/throne/Destroy() + QDEL_NULL(armrest) + return ..() + +/obj/structure/chair/throne/post_buckle_mob(mob/living/M) + . = ..() + update_armrest() + +/obj/structure/chair/throne/proc/update_armrest() + if(has_buckled_mobs()) + add_overlay(armrest) + else + cut_overlay(armrest) + +/obj/structure/chair/throne/post_unbuckle_mob() + . = ..() + update_armrest() + +/obj/structure/chair/throne/Initialize() + + armrest = GetArmrest() + armrest.layer = ABOVE_MOB_LAYER + return ..() + + +//////////////////////////////////////////////////// + /obj/item/chair/stool/narsie_act() return //sturdy enough to ignore a god