mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
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>
23 lines
891 B
Plaintext
23 lines
891 B
Plaintext
/obj/structure/fluff/evidenceshelf
|
|
name = "evidence shelf"
|
|
desc = "A shelf filled with meticulously labeled cardboard boxes. It's fastened to the floor by sturdy bolts."
|
|
icon = 'icons/obj/fluff/evidenceshelf.dmi'
|
|
icon_state = "evidence_shelf"
|
|
density = TRUE
|
|
anchored = TRUE
|
|
opacity = TRUE
|
|
climbable = TRUE
|
|
material = MATERIAL_STEEL
|
|
|
|
/obj/structure/fluff/evidenceshelf/attackby(obj/item/attacking_item, mob/user)
|
|
|
|
if(attacking_item.tool_behaviour == TOOL_WRENCH) //hopefully unanchors the shelf
|
|
anchored = !anchored
|
|
var/obj/structure/fluff/evidenceshelf/E
|
|
for(E in src.loc)
|
|
if(E != src && E.anchored) //only one shelf per tile please
|
|
to_chat(user, "There is already a shelf secured here!")
|
|
return
|
|
attacking_item.play_tool_sound(get_turf(src), 50)
|
|
visible_message(SPAN_NOTICE("\The [src] has been [anchored ? "secured in place" : "unsecured"] by \the [user]."))
|