Patient monitoring console QoL (#12467)

This commit is contained in:
nerocavalier
2021-09-11 17:54:32 +02:00
committed by GitHub
parent cf1cfb34c2
commit ce13f83307
2 changed files with 59 additions and 5 deletions
+17 -5
View File
@@ -47,12 +47,9 @@
var/dat = "<HEAD><TITLE>Operating Computer</TITLE><META HTTP-EQUIV='Refresh' CONTENT='10'></HEAD><BODY>\n"
if(src.table && (src.table.check_victim()))
src.victim = src.table.victim
var/brain_result = victim.get_brain_status()
if(victim.isFBP())
brain_result = "<span class='danger'>N/A</span>"
dat += {"
<B>Patient Information:</B><BR>
Brain Activity: <b>[brain_result]</b><br>
Brain Activity: <b>[victim.isFBP() ? "<span class='danger'>N/A</span>" : victim.get_brain_status()]</b><br>
Pulse: <b>[victim.get_pulse(GETPULSE_TOOL)]</b><br>
BP: <b>[victim.get_blood_pressure()]</b><br>
Blood Oxygenation: <b>[victim.get_blood_oxygenation()]</b><br>
@@ -68,6 +65,21 @@ Blood Oxygenation: <b>[victim.get_blood_oxygenation()]</b><br>
op_win.set_content(dat)
op_win.open()
/obj/machinery/computer/operating/examine(mob/user)
..()
if(get_dist(src, user) <= 2)
if(src.table && (src.table.check_victim()))
src.victim = src.table.victim
to_chat(user, SPAN_NOTICE("Patient Info:"))
to_chat(user, SPAN_NOTICE("Brain Activity: [victim.isFBP() ? "N/A" : victim.get_brain_status()]"))
to_chat(user, SPAN_NOTICE("Pulse: [victim.get_pulse(GETPULSE_TOOL)]"))
to_chat(user, SPAN_NOTICE("BP: [victim.get_blood_pressure()]"))
to_chat(user, SPAN_NOTICE("Blood Oxygenation: [victim.get_blood_oxygenation()]"))
else
src.victim = null
to_chat(user, SPAN_NOTICE("No Patient Detected"))
/obj/machinery/computer/operating/Topic(href, href_list)
if(..())
return 1
@@ -78,4 +90,4 @@ Blood Oxygenation: <b>[victim.get_blood_oxygenation()]</b><br>
/obj/machinery/computer/operating/machinery_process()
if(operable())
src.updateDialog()
src.updateDialog()
@@ -0,0 +1,42 @@
################################
# 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: NeroCavalier
# 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:
- tweak: "You can now examine the patient monitoring console in the OR to see your patient's status instead of having to click on it with an empty hand."