Merge pull request #7342 from Citadel-Station-13/upstream-merge-38909
[MIRROR] Add medical HUD icon if the body has died recently enough to be defibbed
This commit is contained in:
@@ -175,6 +175,11 @@
|
||||
if(has_trait(TRAIT_XENO_HOST))
|
||||
holder.icon_state = "hudxeno"
|
||||
else if(stat == DEAD || (has_trait(TRAIT_FAKEDEATH)))
|
||||
if(tod)
|
||||
var/tdelta = round(world.time - timeofdeath)
|
||||
if(tdelta < (DEFIB_TIME_LIMIT * 10))
|
||||
holder.icon_state = "huddefib"
|
||||
return
|
||||
holder.icon_state = "huddead"
|
||||
else
|
||||
switch(virus_threat)
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
update_canmove()
|
||||
med_hud_set_health()
|
||||
med_hud_set_status()
|
||||
addtimer(CALLBACK(src, .proc/med_hud_set_status), (DEFIB_TIME_LIMIT * 10) + 1)
|
||||
stop_pulling()
|
||||
|
||||
if (client)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Reference in New Issue
Block a user