From e40e5a742c45895f0b50e8b47b586aa2531f9f86 Mon Sep 17 00:00:00 2001
From: SkyratBot <59378654+SkyratBot@users.noreply.github.com>
Date: Fri, 11 Sep 2020 23:16:50 +0200
Subject: [PATCH] [MIRROR] Add feedback for alt clicking atmos machinery (#748)
* Add feedback for alt clicking atmos machinery (#53510)
When you alt click atmos machinery, you will usually do something along the lines of maxing out the pressure output on a pressure pump.
This adds a chat message when you do.
* Add feedback for alt clicking atmos machinery
Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
---
.../machinery/components/binary_devices/passive_gate.dm | 1 +
.../machinery/components/binary_devices/pressure_valve.dm | 1 +
.../atmospherics/machinery/components/binary_devices/pump.dm | 1 +
.../machinery/components/binary_devices/volume_pump.dm | 1 +
.../atmospherics/machinery/components/trinary_devices/filter.dm | 1 +
.../atmospherics/machinery/components/trinary_devices/mixer.dm | 1 +
.../machinery/components/unary_devices/outlet_injector.dm | 1 +
.../machinery/components/unary_devices/thermomachine.dm | 2 ++
8 files changed, 9 insertions(+)
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm b/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm
index a2b22738b7d..70c982d1db2 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/passive_gate.dm
@@ -38,6 +38,7 @@ Passive gate is similar to the regular pump except:
if(can_interact(user))
target_pressure = MAX_OUTPUT_PRESSURE
investigate_log("was set to [target_pressure] kPa by [key_name(user)]", INVESTIGATE_ATMOS)
+ to_chat(user, "You maximize the pressure output on [src] to [target_pressure] kPa.")
update_icon()
return ..()
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/pressure_valve.dm b/code/modules/atmospherics/machinery/components/binary_devices/pressure_valve.dm
index 8e6379e3b7f..93e5c32870e 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/pressure_valve.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/pressure_valve.dm
@@ -31,6 +31,7 @@
if(can_interact(user))
target_pressure = MAX_OUTPUT_PRESSURE
investigate_log("was set to [target_pressure] kPa by [key_name(user)]", INVESTIGATE_ATMOS)
+ to_chat(user, "You set the target pressure on [src] to [target_pressure] kPa.")
update_icon()
return ..()
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/pump.dm
index 60334328671..22f412ff391 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/pump.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/pump.dm
@@ -38,6 +38,7 @@
if(can_interact(user))
target_pressure = MAX_OUTPUT_PRESSURE
investigate_log("was set to [target_pressure] kPa by [key_name(user)]", INVESTIGATE_ATMOS)
+ to_chat(user, "You maximize the pressure output on [src] to [target_pressure] kPa.")
update_icon()
return ..()
diff --git a/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm b/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm
index c82b35c7dfb..99546dc0471 100644
--- a/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm
+++ b/code/modules/atmospherics/machinery/components/binary_devices/volume_pump.dm
@@ -39,6 +39,7 @@
if(can_interact(user))
transfer_rate = MAX_TRANSFER_RATE
investigate_log("was set to [transfer_rate] L/s by [key_name(user)]", INVESTIGATE_ATMOS)
+ to_chat(user, "You maximize the volume output on [src] to [transfer_rate] L/s.")
update_icon()
return ..()
diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm
index 3788dba15e6..f2b0e9c8867 100644
--- a/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm
+++ b/code/modules/atmospherics/machinery/components/trinary_devices/filter.dm
@@ -25,6 +25,7 @@
if(can_interact(user))
transfer_rate = MAX_TRANSFER_RATE
investigate_log("was set to [transfer_rate] L/s by [key_name(user)]", INVESTIGATE_ATMOS)
+ to_chat(user, "You maximize the volume output on [src] to [transfer_rate] L/s.")
update_icon()
return ..()
diff --git a/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm b/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm
index fc3b04c0c47..fd9968cc037 100644
--- a/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm
+++ b/code/modules/atmospherics/machinery/components/trinary_devices/mixer.dm
@@ -27,6 +27,7 @@
if(can_interact(user))
target_pressure = MAX_OUTPUT_PRESSURE
investigate_log("was set to [target_pressure] kPa by [key_name(user)]", INVESTIGATE_ATMOS)
+ to_chat(user, "You maximize the pressure output on [src] to [target_pressure] kPa.")
update_icon()
return ..()
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm b/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm
index 75901061a02..32ff4257e2a 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/outlet_injector.dm
@@ -34,6 +34,7 @@
if(can_interact(user))
volume_rate = MAX_TRANSFER_RATE
investigate_log("was set to [volume_rate] L/s by [key_name(user)]", INVESTIGATE_ATMOS)
+ to_chat(user, "You maximize the volume output on [src] to [volume_rate] L/s.")
update_icon()
return ..()
diff --git a/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm b/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm
index 2281d6a1062..dd73a1ef6bb 100644
--- a/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm
+++ b/code/modules/atmospherics/machinery/components/unary_devices/thermomachine.dm
@@ -216,6 +216,7 @@
return
target_temperature = min_temperature
investigate_log("was set to [target_temperature] K by [key_name(user)]", INVESTIGATE_ATMOS)
+ to_chat(user, "You minimize the target temperature on [src] to [target_temperature] K.")
/obj/machinery/atmospherics/components/unary/thermomachine/heater
name = "heater"
@@ -243,3 +244,4 @@
return
target_temperature = max_temperature
investigate_log("was set to [target_temperature] K by [key_name(user)]", INVESTIGATE_ATMOS)
+ to_chat(user, "You maximize the target temperature on [src] to [target_temperature] K.")