Reduces Defib Safe Time: Adds Health HUD Defib Indicator

This commit is contained in:
Fox McCloud
2019-02-07 00:49:24 -05:00
parent 316b52b15b
commit dc09d07d86
6 changed files with 19 additions and 2 deletions
+5
View File
@@ -164,6 +164,11 @@
var/image/holder = hud_list[STATUS_HUD]
var/mob/living/simple_animal/borer/B = has_brain_worms()
if(stat == DEAD || (status_flags & FAKEDEATH))
if(timeofdeath)
var/tdelta = round(world.time - timeofdeath)
if(tdelta < (DEFIB_TIME_LIMIT * 10))
holder.icon_state = "huddefib"
return
holder.icon_state = "huddead"
else if(status_flags & XENO_HOST)
holder.icon_state = "hudxeno"