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.
This commit is contained in:
maxspells
2021-12-05 11:15:11 +00:00
committed by GitHub
parent d369581399
commit 56940b8b9b
+9 -8
View File
@@ -410,8 +410,8 @@ GENE SCANNER
if(cyberimp_detect)
render_list += "<span class='notice ml-1'>Detected cybernetic modifications:</span>\n"
render_list += "<span class='notice ml-2'>[cyberimp_detect]</span>\n"
to_chat(user, jointext(render_list, ""), trailing_newline = FALSE) // we handled the last <br> so we don't need handholding
// we handled the last <br> 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 += "<span class='notice ml-1'>Subject is temporally unstable. Stabilising agent is recommended to reduce disturbances.</span>\n"
to_chat(user, jointext(render_list, ""), trailing_newline = FALSE) // we handled the last <br> so we don't need handholding
// we handled the last <br> 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, "<span class='notice ml-1'>No wounds detected in subject.</span>")
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)] &deg;C ([round(environment.temperature, 0.01)] K)")]\n"
to_chat(user, jointext(render_list, ""), trailing_newline = FALSE) // we handled the last <br> so we don't need handholding
// we handled the last <br> 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