mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-18 10:16:43 +01:00
In total: - Adds span defines for `reallybig hypnophrase`, `big warning`, `header` - Fixes a missing apostrophe for hypno stare - Makes a special exception for cuddling.dm, which uses an irregular span - Puts the spans file back
64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
/*
|
|
* Mushroom Frames
|
|
*/
|
|
|
|
/obj/structure/table_frame/mushwood
|
|
name = "mushroom table frame"
|
|
desc = "Four wooden legs with four framing wooden rods for a wooden table. You could easily pass through this."
|
|
icon = 'modular_splurt/icons/obj/structures.dmi'
|
|
icon_state = "table_frame_mushwood"
|
|
framestack = /obj/item/stack/sheet/mineral/wood/mushroom
|
|
framestackamount = 2
|
|
resistance_flags = FIRE_PROOF
|
|
|
|
/obj/structure/table_frame/mushwood/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/wood/mushroom))
|
|
toConstruct = /obj/structure/table/wood/mushroom
|
|
else if(istype(I, /obj/item/stack/tile/carpet))
|
|
toConstruct = /obj/structure/table/wood/poker/mushroom
|
|
|
|
if (toConstruct)
|
|
if(material.get_amount() < 1)
|
|
to_chat(user, span_warning("You need one [material.name] sheet to do this!"))
|
|
return
|
|
to_chat(user, span_notice("You start adding [material] to [src]..."))
|
|
if(do_after(user, 20, target = src) && material.use(1))
|
|
make_new_table(toConstruct)
|
|
else
|
|
return ..()
|
|
|
|
/*
|
|
* Shadow Wood Frames
|
|
*/
|
|
|
|
/obj/structure/table_frame/shadow_wood
|
|
name = "shadow wood frame"
|
|
desc = "Four wooden legs with four framing wooden rods for a wooden table. You could easily pass through this."
|
|
icon = 'modular_splurt/icons/obj/structures.dmi'
|
|
icon_state = "table_frame_shadow"
|
|
framestack = /obj/item/stack/sheet/mineral/wood/shadow
|
|
framestackamount = 2
|
|
resistance_flags = FLAMMABLE
|
|
|
|
/obj/structure/table_frame/shadow_wood/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/wood/shadow))
|
|
toConstruct = /obj/structure/table/wood/shadow
|
|
else if(istype(I, /obj/item/stack/tile/carpet))
|
|
toConstruct = /obj/structure/table/wood/poker/shadow
|
|
|
|
if (toConstruct)
|
|
if(material.get_amount() < 1)
|
|
to_chat(user, span_warning("You need one [material.name] sheet to do this!"))
|
|
return
|
|
to_chat(user, span_notice("You start adding [material] to [src]..."))
|
|
if(do_after(user, 20, target = src) && material.use(1))
|
|
make_new_table(toConstruct)
|
|
else
|
|
return ..()
|