Skrell Srom Health Indicator (#10686)

This commit is contained in:
Geeves
2020-12-22 16:45:40 +02:00
committed by GitHub
parent bd2280b5a1
commit ca8ef1ea71
4 changed files with 25 additions and 2 deletions
@@ -796,6 +796,11 @@
var/tmp/last_frenzy_state
var/tmp/last_oxy_overlay
/mob/living/carbon/human/can_update_hud()
if((!client && !bg) || QDELETED(src))
return FALSE
return TRUE
/mob/living/carbon/human/handle_regular_hud_updates()
if(hud_updateflag) // update our mob's hud overlays, AKA what others see flaoting above our head
handle_hud_list()
+8 -2
View File
@@ -113,12 +113,18 @@
//this handles hud updates. Calls update_vision() and handle_hud_icons()
/mob/living/proc/handle_regular_hud_updates()
if(!client || QDELETED(src)) return 0
if(!can_update_hud())
return FALSE
handle_hud_icons()
handle_vision()
return 1
return TRUE
/mob/living/proc/can_update_hud()
if(!client || QDELETED(src))
return FALSE
return TRUE
/mob/living/proc/handle_vision()
update_sight()
+6
View File
@@ -20,6 +20,12 @@
loc = pick(dream_entries)
body = form
if(client)
client.screen |= body.healths
/mob/living/brain_ghost/LateLogin()
..()
client.screen |= body.healths
/mob/living/brain_ghost/verb/awaken()
set name = "Awaken"