Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan health only when non-revivable #4124

Merged
merged 2 commits into from
Aug 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 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,27 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
if(!istype(target))
return

if(check_client_rights(client, R_MOD, FALSE))
view_health_scan(target)
return

if(!mind.original)
morrowwolf marked this conversation as resolved.
Show resolved Hide resolved
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