This commit is contained in:
Kabra_men
2021-01-21 03:09:52 -03:00
parent 0b7688328f
commit 6c0a7b1b39
14 changed files with 428 additions and 0 deletions
@@ -2,6 +2,9 @@
* Contains:
* Frames
* Wooden Frames
* Shadow Wood Frames
* Plaswood Frames
* Mushroom Frames
*/
@@ -126,3 +129,90 @@
color = "#960000"
animate(src, color = previouscolor, time = 8)
addtimer(CALLBACK(src, /atom/proc/update_atom_colour), 8)
/*
* Plaswood Frames
*/
/obj/structure/table_frame/plaswood
name = "Plaswood table frame"
desc = "Four wooden legs with four framing wooden rods for a wooden table. You could easily pass through this."
icon_state = "plaswood_frame"
framestack = /obj/item/stack/sheet/mineral/plaswood
framestackamount = 2
resistance_flags = FLAMMABLE | ACID_PROOF
/obj/structure/table_frame/plaswood/attackby(obj/item/I, mob/user, params)
if (istype(I, /obj/item/stack))
var/obj/item/stack/material = I
var/toConstruct // stores the table variant
if(istype(I, /obj/item/stack/sheet/mineral/plaswood))
toConstruct = /obj/structure/table/plaswood
if (toConstruct)
if(material.get_amount() < 1)
to_chat(user, "<span class='warning'>You need one [material.name] sheet to do this!</span>")
return
to_chat(user, "<span class='notice'>You start adding [material] to [src]...</span>")
if(do_after(user, 20, target = src) && material.use(1))
make_new_table(toConstruct)
else
return ..()
/*
* Mushroom Frames
*/
/obj/structure/table_frame/gmushroom
name = "mushroom table frame"
desc = "Four wooden legs with four framing wooden rods for a wooden table. You could easily pass through this."
icon_state = "gmushroom_frame"
framestack = /obj/item/stack/sheet/mineral/gmushroom
framestackamount = 2
resistance_flags = FIRE_PROOF
/obj/structure/table_frame/gmushroom/attackby(obj/item/I, mob/user, params)
if (istype(I, /obj/item/stack))
var/obj/item/stack/material = I
var/toConstruct // stores the table variant
if(istype(I, /obj/item/stack/sheet/mineral/gmushroom))
toConstruct = /obj/structure/table/gmushroom
if (toConstruct)
if(material.get_amount() < 1)
to_chat(user, "<span class='warning'>You need one [material.name] sheet to do this!</span>")
return
to_chat(user, "<span class='notice'>You start adding [material] to [src]...</span>")
if(do_after(user, 20, target = src) && material.use(1))
make_new_table(toConstruct)
else
return ..()
/*
* Shadow Wood Frames
*/
/obj/structure/table_frame/shadoww
name = "shadow wood frame"
desc = "Four wooden legs with four framing wooden rods for a wooden table. You could easily pass through this."
icon_state = "shadoww_frame"
framestack = /obj/item/stack/sheet/mineral/shadoww
framestackamount = 2
resistance_flags = FLAMMABLE
/obj/structure/table_frame/shadoww/attackby(obj/item/I, mob/user, params)
if (istype(I, /obj/item/stack))
var/obj/item/stack/material = I
var/toConstruct // stores the table variant
if(istype(I, /obj/item/stack/sheet/mineral/shadoww))
toConstruct = /obj/structure/table/shadoww
if (toConstruct)
if(material.get_amount() < 1)
to_chat(user, "<span class='warning'>You need one [material.name] sheet to do this!</span>")
return
to_chat(user, "<span class='notice'>You start adding [material] to [src]...</span>")
if(do_after(user, 20, target = src) && material.use(1))
make_new_table(toConstruct)
else
return ..()