Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Aug 6, 2023
1 parent 04c7967 commit 948ca97
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions code/modules/mob/dead/observer/observer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,23 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!istype(target))
return

if(!mind.original)
view_health_scan(target)
return

if(!ishuman(mind.original))
view_health_scan(target)
return

var/mob/living/carbon/human/original_human = mind.original

if(!original_human.check_tod() || !original_human.is_revivable() || !can_reenter_corpse)
view_health_scan(target)
return

to_chat(src, SPAN_NOTICE("You must be permanently unrevivable or unable to reenter your body to use the scan health verb."))

/mob/dead/observer/proc/view_health_scan(mob/living/target)
if (!last_health_display)
last_health_display = new(target)
else
Expand Down

0 comments on commit 948ca97

Please sign in to comment.