Files
Casper3667 ee25c1fac5 Make clothing racks and retail shelves craftable (#21434)
Allows the clothing rack and retail shelf to be crafted.
Additionally it fixes the duplicate rods from taking apart tables and
the racks giving rods when they should give plastic.
2025-10-05 17:25:58 +00:00

53 lines
1.4 KiB
Plaintext

/obj/structure/table/rack
name = "rack"
desc = "Different from the Middle Ages version."
icon = 'icons/obj/structure/tables/table.dmi'
icon_state = "rack"
pass_flags_self = LETPASSTHROW //You can throw objects over this, despite it's density.
build_amt = 1
can_plate = 0
can_reinforce = 0
flipped = -1
table_mat = DEFAULT_TABLE_MATERIAL
dismantle_mat = /obj/item/stack/material/plastic
/obj/structure/table/rack/New()
..()
verbs -= /obj/structure/table/verb/do_flip
verbs -= /obj/structure/table/proc/do_put
/obj/structure/table/rack/remove_material(obj/item/wrench/W, mob/user)
src.dismantle(W, user)
/obj/structure/table/rack/update_connections()
return
/obj/structure/table/rack/update_desc()
return
/obj/structure/table/rack/update_icon()
return
/obj/structure/table/rack/no_cargo
no_cargo = TRUE
/obj/structure/table/rack/clothing
name = "clothing rack"
desc = "A mighty rack, suitable for grabbing and pushing. It's quite mobile."
icon_state = "clothes_rack"
/obj/structure/table/rack/retail_shelf
name = "retail shelves"
desc = "A large, assorted shelf with many platforms for setting things upon."
icon_state = "shelf"
/obj/structure/table/rack/cafe_table
name = "round cafe table"
desc = "A wood table with soft, rounded edges."
icon_state = "cafe"
table_mat = MATERIAL_WOOD
/obj/structure/table/rack/holorack/dismantle(obj/item/wrench/W, mob/user)
to_chat(user, SPAN_WARNING("You cannot dismantle \the [src]."))
return