Removes multitool menu from conveyor belt lever, it'll just change automatically now

This commit is contained in:
Citinited
2019-02-12 18:04:31 +00:00
parent 5e33a33ac6
commit 56adaceb81
+2 -13
View File
@@ -312,22 +312,11 @@ GLOBAL_LIST_INIT(conveyor_switches, list())
to_chat(user,"<span class='notice'>You detach the conveyor switch.</span>")
qdel(src)
else if(ismultitool(I))
update_multitool_menu(user)
one_way = !one_way
to_chat(user, "<span class='notice'>[src] will now go [one_way ? "forwards only" : "both forwards and backwards"].</span>")
else
return ..()
/obj/machinery/conveyor_switch/multitool_topic(var/mob/user,var/list/href_list,var/obj/O)
..()
if("toggle_logic" in href_list)
one_way = !one_way
update_multitool_menu(user)
/obj/machinery/conveyor_switch/multitool_menu(var/mob/user, var/obj/item/multitool/P)
return {"
<ul>
<li><b>One direction only:</b> <a href='?src=[UID()];toggle_logic=1'>[one_way ? "On" : "Off"]</a></li>
</ul>"}
/obj/machinery/conveyor_switch/power_change()
..()
update_icon()