Fixed a rogue square bracket and a BPM repetition in the health analyzer scan results. (#18156)

* fix rogue bracket

* Fixes some health analyzer scan errors.

---------

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2024-01-07 00:51:39 +00:00
committed by GitHub
co-authored by Matt Atlas
parent ec7f71ae0a
commit 2ba621a7cb
2 changed files with 45 additions and 3 deletions
+4 -3
View File
@@ -166,15 +166,16 @@ BREATH ANALYZER
pulse_result = "<span class='danger'>0</span>"
else
pulse_result = H.get_pulse(GETPULSE_TOOL)
pulse_result = "<span class='scan_green'>[pulse_result] BPM</span>"
if(H.pulse() == PULSE_NONE)
pulse_result = "<span class='scan_danger'>[pulse_result] BPM</span>"
else if(H.pulse() < PULSE_NORM)
pulse_result = "<span class='scan_notice'>[pulse_result] BPM</span>"
else if(H.pulse() > PULSE_NORM)
pulse_result = "<span class='scan_warning'>[pulse_result] BPM</span>"
else
pulse_result = "<span class='scan_green'>[pulse_result] BPM</span>"
else
pulse_result = "<span class='scan_danger'>0 BPM</span>"
pulse_result = "<span class='scan_danger'>0</span>"
dat += "Pulse rate: [pulse_result]"
// Body temperature. Rounds to one digit after decimal.
@@ -208,7 +209,7 @@ BREATH ANALYZER
blood_volume_string = "<span class='scan_danger'>\<[BLOOD_VOLUME_SURVIVE]%</span>"
var/oxygenation = H.get_blood_oxygenation()
var/oxygenation_string = "<span class='scan_green'>[oxygenation]]%</span>"
var/oxygenation_string = "<span class='scan_green'>[oxygenation]%</span>"
switch(oxygenation)
if(BLOOD_VOLUME_OKAY to BLOOD_VOLUME_SAFE)
oxygenation_string = "<span class='scan_notice'>[oxygenation]%</span>"