From eb6c8d7b7f2629ec8f654bd2fbc59d9d88aff5e3 Mon Sep 17 00:00:00 2001 From: Nadyr <41974248+Darlantanis@users.noreply.github.com> Date: Tue, 25 Apr 2023 21:10:26 -0400 Subject: [PATCH] powder that makes you say yes --- code/modules/recycling/conveyor2.dm | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/code/modules/recycling/conveyor2.dm b/code/modules/recycling/conveyor2.dm index edc2e8b8b1..93c6238b85 100644 --- a/code/modules/recycling/conveyor2.dm +++ b/code/modules/recycling/conveyor2.dm @@ -315,8 +315,20 @@ if(C.id == id) conveyors += C return + + if(istype(I, /obj/item/weapon/tool/wrench)) + if(panel_open) + if(oneway == 1) + to_chat(user, "You set the switch to two way operation.") + oneway = 0 + playsound(src, I.usesound, 50, 1) + return + else + to_chat(user, "You set the switch to one way operation.") + oneway = 1 + playsound(src, I.usesound, 50, 1) + return -<<<<<<< HEAD //CHOMPedit: Conveyor belts can be fast :) if(istype(I, /obj/item/weapon/tool/wirecutters)) if(panel_open) @@ -334,20 +346,6 @@ position = convdir else position = 0 -======= - if(istype(I, /obj/item/weapon/tool/wrench)) - if(panel_open) - if(oneway == 1) - to_chat(user, "You set the switch to two way operation.") - oneway = 0 - playsound(src, I.usesound, 50, 1) - return - else - to_chat(user, "You set the switch to one way operation.") - oneway = 1 - playsound(src, I.usesound, 50, 1) - return ->>>>>>> 326496ce71... Merge pull request #14806 from ReoDaProtovali/master /obj/machinery/conveyor_switch/oneway oneway = 1