Stethoscope defibrillation checking (#33234)

This commit is contained in:
Ashe Higgs
2017-12-05 02:56:26 -05:00
committed by CitadelStationBot
parent e7da4615d6
commit 7b3c2862d3
+3
View File
@@ -72,6 +72,9 @@
if(!(M.failed_last_breath || M.losebreath))
lung_strength = "healthy"
if(M.stat == DEAD && heart && world.time - M.timeofdeath < DEFIB_TIME_LIMIT * 10)
heart_strength = "<span class='boldannounce'>a faint, fluttery</span>"
var/diagnosis = (body_part == "chest" ? "You hear [heart_strength] pulse and [lung_strength] respiration." : "You faintly hear [heart_strength] pulse.")
user.visible_message("[user] places [src] against [M]'s [body_part] and listens attentively.", "<span class='notice'>You place [src] against [M]'s [body_part]. [diagnosis]</span>")
return