Removes shell fake BPM + blood oxygenation. (#9162)

This commit is contained in:
Matt Atlas
2020-06-21 12:25:46 +02:00
committed by GitHub
parent 55d784cf79
commit c9ada1ff1d
4 changed files with 46 additions and 13 deletions

View File

@@ -48,7 +48,7 @@
src.victim = src.table.victim src.victim = src.table.victim
var/brain_result = victim.get_brain_status() var/brain_result = victim.get_brain_status()
if(victim.isFBP()) if(victim.isFBP())
brain_result = "normal" brain_result = "<span class='danger'>N/A</span>"
dat += {" dat += {"
<B>Patient Information:</B><BR> <B>Patient Information:</B><BR>
Brain Activity: <b>[brain_result]</b><br> Brain Activity: <b>[brain_result]</b><br>

View File

@@ -113,7 +113,7 @@ BREATH ANALYZER
pulse_result = 0 pulse_result = 0
else else
pulse_result = H.get_pulse(GETPULSE_TOOL) pulse_result = H.get_pulse(GETPULSE_TOOL)
pulse_result = "<span class='scan_green'>[pulse_result]bpm</span>" pulse_result = "<span class='scan_green'>[pulse_result]</span>"
if(H.pulse() == PULSE_NONE) if(H.pulse() == PULSE_NONE)
pulse_result = "<span class='scan_danger'>[pulse_result]</span>" pulse_result = "<span class='scan_danger'>[pulse_result]</span>"
else if(H.pulse() < PULSE_NORM) else if(H.pulse() < PULSE_NORM)
@@ -121,11 +121,8 @@ BREATH ANALYZER
else if(H.pulse() > PULSE_NORM) else if(H.pulse() > PULSE_NORM)
pulse_result = "<span class='scan_warning'>[pulse_result]</span>" pulse_result = "<span class='scan_warning'>[pulse_result]</span>"
else else
if(H.isFBP()) pulse_result = "<span class='scan_danger'>0</span>"
pulse_result = "[rand(70, 85)]bpm" dat += "Pulse rate: [pulse_result]bpm."
else
pulse_result = "<span class='scan_danger'>ERROR - Nonstandard biology</span>"
dat += "Pulse rate: [pulse_result]."
// Blood pressure. Based on the idea of a normal blood pressure being 120 over 80. // Blood pressure. Based on the idea of a normal blood pressure being 120 over 80.
if(H.should_have_organ(BP_HEART)) if(H.should_have_organ(BP_HEART))
@@ -152,10 +149,7 @@ BREATH ANALYZER
blood_pressure_string = "<span class='scan_danger'>[H.get_blood_pressure()]</span>" blood_pressure_string = "<span class='scan_danger'>[H.get_blood_pressure()]</span>"
dat += "[b]Blood pressure:[endb] [blood_pressure_string] ([oxygenation_string])" dat += "[b]Blood pressure:[endb] [blood_pressure_string] ([oxygenation_string])"
else else
if(H.isFBP()) dat += "[b]Blood pressure:[endb] N/A"
dat += "[b]Blood pressure:[endb] [rand(118, 125)]/[rand(77, 85)] (100%)"
else
dat += "[b]Blood pressure:[endb] N/A"
// Body temperature. // Body temperature.
var/temperature_string var/temperature_string

View File

@@ -1160,8 +1160,6 @@
holder.icon_state = "0" // X_X holder.icon_state = "0" // X_X
else if(is_asystole()) else if(is_asystole())
holder.icon_state = "flatline" holder.icon_state = "flatline"
else if(isFBP(src))
holder.icon_state = "2"
else else
holder.icon_state = "[pulse()]" holder.icon_state = "[pulse()]"
hud_list[HEALTH_HUD] = holder hud_list[HEALTH_HUD] = holder

View File

@@ -0,0 +1,41 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################
# Your name.
author: MattAtlas
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- rscdel: "Shells no longer fake a pulse on the medhud. In addition, they no longer fake a pulse or blood oxygenation on health analyzers."