From d0a0300f25932b24ac571bfca246caead6efe4cc Mon Sep 17 00:00:00 2001 From: Ectype <167669119+whooshboom@users.noreply.github.com> Date: Wed, 1 Jan 2025 07:41:55 -0600 Subject: [PATCH] Pump Keybinds (#9752) --- .../components/binary_devices/pump.dm | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/code/ATMOSPHERICS/components/binary_devices/pump.dm b/code/ATMOSPHERICS/components/binary_devices/pump.dm index 70b498722f..1dc63e217b 100644 --- a/code/ATMOSPHERICS/components/binary_devices/pump.dm +++ b/code/ATMOSPHERICS/components/binary_devices/pump.dm @@ -254,3 +254,25 @@ Thus, the two variables affect pump operation are set in New(): span_notice("You have unfastened \the [src]."), \ "You hear ratchet.") deconstruct() + +//CHOMPEdit Start - Adds TGStation keybinds to save our engineers some time. +/obj/machinery/atmospherics/binary/pump/AltClick(mob/user as mob) + user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) + if(allowed(user)) + to_chat(user, span_notice("You set the pump to max output")) + target_pressure = max_pressure_setting + else + to_chat(user, span_warning("Access denied.")) + +/obj/machinery/atmospherics/binary/pump/CtrlClick(mob/user as mob) + user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) + if(allowed(user)) + update_use_power(!use_power) + if(use_power) + to_chat(user, span_notice("You turn the pump on.")) + else + to_chat(user, span_notice("You turn the pump off.")) + + else + to_chat(user, span_warning("Access denied.")) +//CHOMPEdit End