From a09df344209553a0051e19101e6929296eceec54 Mon Sep 17 00:00:00 2001 From: Arturlang Date: Fri, 24 May 2019 12:09:14 +0300 Subject: [PATCH] Gas pump CTRL and Alt click function --- .../machinery/components/binary_devices/pump.dm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/modules/atmospherics/machinery/components/binary_devices/pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/pump.dm index e7df188f70..2f8f490987 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/pump.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/pump.dm @@ -27,7 +27,19 @@ Thus, the two variables affect pump operation are set in New(): construction_type = /obj/item/pipe/directional pipe_state = "pump" + +/obj/machinery/atmospherics/components/binary/pump/CtrlClick(mob/user) + if(user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) + on = !on + update_icon() + return ..() + update_icon() + return ..() +/obj/machinery/atmospherics/components/binary/pump/AltClick(mob/user) + if(user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) + target_pressure = MAX_OUTPUT_PRESSURE + /obj/machinery/atmospherics/components/binary/pump/layer1 piping_layer = PIPING_LAYER_MIN pixel_x = -PIPING_LAYER_P_X