[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>
This commit is contained in:
SkyratBot
2020-09-11 23:16:50 +02:00
committed by GitHub
co-authored by Jared-Fogle
parent cf79f33ba2
commit e40e5a742c
8 changed files with 9 additions and 0 deletions
@@ -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, "<span class='notice'>You maximize the pressure output on [src] to [target_pressure] kPa.</span>")
update_icon()
return ..()
@@ -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, "<span class='notice'>You set the target pressure on [src] to [target_pressure] kPa.</span>")
update_icon()
return ..()
@@ -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, "<span class='notice'>You maximize the pressure output on [src] to [target_pressure] kPa.</span>")
update_icon()
return ..()
@@ -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, "<span class='notice'>You maximize the volume output on [src] to [transfer_rate] L/s.</span>")
update_icon()
return ..()
@@ -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, "<span class='notice'>You maximize the volume output on [src] to [transfer_rate] L/s.</span>")
update_icon()
return ..()
@@ -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, "<span class='notice'>You maximize the pressure output on [src] to [target_pressure] kPa.</span>")
update_icon()
return ..()
@@ -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, "<span class='notice'>You maximize the volume output on [src] to [volume_rate] L/s.</span>")
update_icon()
return ..()
@@ -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, "<span class='notice'>You minimize the target temperature on [src] to [target_temperature] K.</span>")
/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, "<span class='notice'>You maximize the target temperature on [src] to [target_temperature] K.</span>")