From 277a498f288b43d3e2174343f6ec9514154f4403 Mon Sep 17 00:00:00 2001 From: Arturlang Date: Fri, 24 May 2019 12:13:45 +0300 Subject: [PATCH] Update filter.dm --- .../machinery/components/trinary_devices/filter.dm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm index 4101deb00c..a65785a77e 100644 --- a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm +++ b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm @@ -12,6 +12,18 @@ construction_type = /obj/item/pipe/trinary/flippable pipe_state = "filter" +/obj/machinery/atmospherics/components/trinary/filter/CtrlClick(mob/user) + if(user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) + on = !on + update_icon() + return ..() + +/obj/machinery/atmospherics/components/trinary/filter/AltClick(mob/user) + if(user.canUseTopic(src, BE_CLOSE, FALSE, NO_TK)) + target_pressure = MAX_OUTPUT_PRESSURE + update_icon() + return ..() + /obj/machinery/atmospherics/components/trinary/filter/layer1 piping_layer = PIPING_LAYER_MIN pixel_x = -PIPING_LAYER_P_X