Merge pull request #4216 from Citadel-Station-13/upstream-merge-33234

[MIRROR] Stethoscopes now inform the user if the target can be defibrillated
This commit is contained in:
deathride58
2017-12-05 20:18:43 +00:00
committed by GitHub
+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