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 ..()
@@ -318,6 +318,56 @@
for(var/obj/item/shard/S in debris)
S.color = NARSIE_WINDOW_COLOUR
/*
* Shadow wood tables
*/
/obj/structure/table/shadoww
name = "Shadow wood table"
desc = "Do not apply fire to this. Rumour says it burns easily."
icon = 'icons/obj/smooth_structures/shadoww_table.dmi'
icon_state = "wood_table"
frame = /obj/structure/table_frame/shadoww
framestack = /obj/item/stack/sheet/mineral/shadoww
buildstack = /obj/item/stack/sheet/mineral/shadoww
resistance_flags = FLAMMABLE
max_integrity = 70
canSmoothWith = null
/*
* Plaswood tables
*/
/obj/structure/table/plaswood
name = "plaswood table"
desc = "An strong and grey wooden table."
icon = 'icons/obj/smooth_structures/plaswood_table.dmi'
icon_state = "wood_table"
frame = /obj/structure/table_frame/wood
framestack = /obj/item/stack/sheet/mineral/plaswood
buildstack = /obj/item/stack/sheet/mineral/plaswood
resistance_flags = FLAMMABLE
max_integrity = 200
integrity_failure = 50
armor = list("melee" = 10, "bullet" = 30, "laser" = 30, "energy" = 100, "bomb" = 20, "bio" = 0, "rad" = 0, "fire" = 80, "acid" = 70)
canSmoothWith = null
/*
* Mushroom tables
*/
/obj/structure/table/gmushroom
name = "Mushroom table"
desc = "A pinkish table. And is fireproof!"
icon = 'icons/obj/smooth_structures/gmushroom_table.dmi'
icon_state = "gmushroom_table"
frame = /obj/structure/table_frame/gmushroom
framestack = /obj/item/stack/sheet/mineral/gmushroom
buildstack = /obj/item/stack/sheet/mineral/gmushroom
resistance_flags = FIRE_PROOF
max_integrity = 70
canSmoothWith = null
/*
* Wooden tables
*/