From c9de82a689a1c70778032cbfecf0dd0257cb6aa7 Mon Sep 17 00:00:00 2001 From: vortex <22815407+vortex1942@users.noreply.github.com> Date: Sun, 24 Dec 2023 19:39:50 +1100 Subject: [PATCH] Adds player interaction logs to pump_ui (#17416) --- code/modules/atmospherics/machinery/binary/pump_ui.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/atmospherics/machinery/binary/pump_ui.dm b/code/modules/atmospherics/machinery/binary/pump_ui.dm index 659ee218bfb5f..72b927e6c9807 100644 --- a/code/modules/atmospherics/machinery/binary/pump_ui.dm +++ b/code/modules/atmospherics/machinery/binary/pump_ui.dm @@ -36,12 +36,15 @@ var/value_to_set = input(usr, "[value_name] ([min_value] - [max_value] [value_units]):", "Enter new value", get_value()) as num if(isnum_safe(value_to_set)) src.set_value(clamp(value_to_set, min_value, max_value)) + logTheThing(LOG_STATION, usr, "has set [src.get_atom()] value to [src.get_value()] at [log_loc(src.get_atom())]") if("toggle_power") src.toggle_power() + logTheThing(LOG_STATION, usr, "has set [src.get_atom()] power to [src.is_on() ? "On" : "Off"] at [log_loc(src.get_atom())]") if("bump_value") src.set_value(clamp(get_value() + text2num_safe(href_list["bump_value"]), min_value, max_value)) + logTheThing(LOG_STATION, usr, "has set [src.get_atom()] value to [src.get_value()] at [log_loc(src.get_atom())]") src.show_ui(usr) /// Displays the UI