Fix check_ghost_client() runtime + improve examine/hud conditions (#29023)

* should be fine

* these 2 as well

* Update code/modules/mob/living/carbon/examine.dm

Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
Signed-off-by: kyunkyunkyun <120701975+kyunkyunkyun@users.noreply.github.com>

---------

Signed-off-by: kyunkyunkyun <120701975+kyunkyunkyun@users.noreply.github.com>
Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
This commit is contained in:
kyunkyunkyun
2025-04-22 11:47:18 +00:00
committed by GitHub
co-authored by warriorstar-orion
parent 0a80e42d1a
commit ecd13af77c
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -253,10 +253,10 @@
msg += "<span class='warning'>[p_they(TRUE)] appear[p_s()] to have committed suicide... there is no hope of recovery.</span>\n"
if(!just_sleeping)
msg += "<span class='deadsay'>[p_they(TRUE)] [p_are()] limp and unresponsive"
if(get_int_organ(/obj/item/organ/internal/brain) && !key)
if(!check_ghost_client())
if(get_int_organ(/obj/item/organ/internal/brain) && !client) // body has no online player inside - let's look for ghost
if(!check_ghost_client()) // our ghost is offline or no ghost attached to body
msg += "; there are no signs of life"
if(!get_ghost())
if(!get_ghost() && !key) // no ghost attached to body
msg += " and [p_their()] soul has departed"
msg += "...</span>\n"