From 56940b8b9b3b985ea047d04af96a64cec88f6b6a Mon Sep 17 00:00:00 2001 From: maxspells <94013721+maxspells@users.noreply.github.com> Date: Sun, 5 Dec 2021 06:15:11 -0500 Subject: [PATCH] Move scan results from health analyzers/other scanners from local chat to info tab (#63245) This will change the results from a health analyzer scan to show up in the info chat tab instead of local chat. It will also do the same for gas and atmos scans, because why not. --- code/game/objects/items/devices/scanners.dm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/code/game/objects/items/devices/scanners.dm b/code/game/objects/items/devices/scanners.dm index 63d1a69b8d8..8d9ccd8a83a 100644 --- a/code/game/objects/items/devices/scanners.dm +++ b/code/game/objects/items/devices/scanners.dm @@ -410,8 +410,8 @@ GENE SCANNER if(cyberimp_detect) render_list += "Detected cybernetic modifications:\n" render_list += "[cyberimp_detect]\n" - - to_chat(user, jointext(render_list, ""), trailing_newline = FALSE) // we handled the last
so we don't need handholding + // we handled the last
so we don't need handholding + to_chat(user, jointext(render_list, ""), trailing_newline = FALSE, type = MESSAGE_TYPE_INFO) /proc/chemscan(mob/living/user, mob/living/M) if(user.incapacitated()) @@ -458,8 +458,8 @@ GENE SCANNER if(M.has_status_effect(/datum/status_effect/eigenstasium)) render_list += "Subject is temporally unstable. Stabilising agent is recommended to reduce disturbances.\n" - - to_chat(user, jointext(render_list, ""), trailing_newline = FALSE) // we handled the last
so we don't need handholding + // we handled the last
so we don't need handholding + to_chat(user, jointext(render_list, ""), trailing_newline = FALSE, type = MESSAGE_TYPE_INFO) /obj/item/healthanalyzer/verb/toggle_mode() set name = "Switch Verbosity" @@ -503,7 +503,7 @@ GENE SCANNER else to_chat(user, "No wounds detected in subject.") else - to_chat(user, jointext(render_list, "")) + to_chat(user, jointext(render_list, ""), type = MESSAGE_TYPE_INFO) /obj/item/healthanalyzer/wound name = "first aid analyzer" @@ -612,7 +612,8 @@ GENE SCANNER var/gas_concentration = env_gases[id][MOLES]/total_moles render_list += "[span_alert("[env_gases[id][GAS_META][META_GAS_NAME]]: [round(gas_concentration*100, 0.01)] % ([round(env_gases[id][MOLES], 0.01)] mol)")]\n" render_list += "[span_info("Temperature: [round(environment.temperature-T0C, 0.01)] °C ([round(environment.temperature, 0.01)] K)")]\n" - to_chat(user, jointext(render_list, ""), trailing_newline = FALSE) // we handled the last
so we don't need handholding + // we handled the last
so we don't need handholding + to_chat(user, jointext(render_list, ""), trailing_newline = FALSE, type = MESSAGE_TYPE_INFO) /obj/item/analyzer/AltClick(mob/user) //Barometer output for measuring when the next storm happens ..() @@ -715,8 +716,8 @@ GENE SCANNER if(cached_scan_results && cached_scan_results["fusion"]) //notify the user if a fusion reaction was detected render_list += "[span_boldnotice("Large amounts of free neutrons detected in the air indicate that a fusion reaction took place.")]\ \n[span_notice("Instability of the last fusion reaction: [round(cached_scan_results["fusion"], 0.01)].")]" - - to_chat(user, jointext(render_list, "\n")) // we let the join apply newlines so we do need handholding + // we let the join apply newlines so we do need handholding + to_chat(user, jointext(render_list, "\n"), type = MESSAGE_TYPE_INFO) return TRUE //slime scanner