Files
Batrachophreno eebb8b971c Materials Repath (#22388)
Soft-ish port of https://github.com/NebulaSS13/Nebula/pull/540. Except
we call them singletons.

Repaths all materials as singletons instead of datums, and replaces
material defines from strings to paths so that we can just run
GET_SINGLETON instead of needing to use SSMaterials. This is Step One.

This PR has no player-facing changes.

changes:
  - refactor: "Repaths /material to /singleton/material."
- refactor: "Replaces all material string defines to path defines,
replacing SSmaterials procs w/ GET_SINGLETON instead."
- refactor: "Removes all material var edited objects from all maps,
adding new presets where necessary."
- refactor: "Updates recipes unit test to run all recipes against all
material singletons."

---------

Signed-off-by: Batrachophreno <Batrochophreno@gmail.com>
Co-authored-by: kano-dot <bhutanlikanoxy@gmail.com>
2026-07-10 18:45: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 = MATERIAL_PLASTIC
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