Advanced Health Analyser Fixes (#20226)

Should fix https://github.com/Aurorastation/Aurora.3/issues/18325
Fixes for Advanced Health Analyser for shell and exosuit

QoL for Exosuit analyzer full scan, making it clearer which mode you are
on, and having the scan print alongside displaying it to the pilot(s)

---------

Co-authored-by: Ben10083 <Ben10083@users.noreply.github.com>
This commit is contained in:
Ben
2024-12-03 12:44:56 +00:00
committed by GitHub
co-authored by Ben10083
parent e94b158c95
commit 4dcdc3883a
6 changed files with 165 additions and 35 deletions
@@ -733,6 +733,13 @@ BREATH ANALYZER
var/obj/item/paper/medscan/R = new /obj/item/paper/medscan(src, connected.format_occupant_data(get_occupant_data(M)), "Scan ([M.name]) ([worldtime2text()])", M)
connected.print(R, message = "\The [src] beeps, printing \the [R] after a moment.", user = user)
/// Variant of print_scan(), main difference is different method to print the paper
/obj/item/device/advanced_healthanalyzer/cyborg/print_scan(var/mob/M, var/mob/living/user)
var/obj/item/paper/medscan/R = new /obj/item/paper/medscan(src, connected.format_occupant_data(get_occupant_data(M)), "Scan ([M.name]) ([worldtime2text()])", M)
user.visible_message(SPAN_NOTICE("\The [src] beeps, printing \the [R] after a moment."))
playsound(user.loc, /singleton/sound_category/print_sound, 50, 1)
R.forceMove(user.loc)
/obj/item/device/advanced_healthanalyzer/proc/get_occupant_data(var/mob/living/carbon/human/H)
if (!ishuman(H))
return