Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions code/modules/recycling/conveyor2.dm
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,17 @@ GLOBAL_LIST_EMPTY(conveyors_by_id)
to_chat(user, "<span class='notice'>You detach the conveyor switch.</span>")
qdel(src)

/obj/machinery/conveyor_switch/wrench_act(mob/living/user, obj/item/I)
if(position)
to_chat(user, "<span class='warning'>\The [src] must be off before attempting to change it's direction!</span>")
return FALSE
oneway = !oneway
I.play_tool_sound(src, 75)
user.visible_message("<span class='notice'>[user] sets \the [src] to [oneway ? "one-way" : "two-way"].</span>", \
"<span class='notice'>You set \the [src] to [oneway ? "one-way" : "two-way"].</span>", \
"<span class='italics'>You hear a ratchet.</span>")
return TRUE

/obj/machinery/conveyor_switch/oneway
icon_state = "conveyor_switch_oneway"
desc = "A conveyor control switch. It appears to only go in one direction."
Expand Down