mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 04:48:18 +01:00
Skrell Srom Health Indicator (#10686)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user