Skip to content

Commit

Permalink
aghosting as rogueghost
Browse files Browse the repository at this point in the history
  • Loading branch information
skeyuui committed Aug 19, 2024
1 parent a2f8b01 commit 435d936
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/__DEFINES/is_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ GLOBAL_LIST_INIT(our_forest_sex, typecacheof(list(


//Misc mobs
#define isrogueghost(A) (istype(A,/mob/dead/observer/rogue))

#define isobserver(A) (istype(A, /mob/dead/observer))

#define isdead(A) (istype(A, /mob/dead))
Expand Down
3 changes: 3 additions & 0 deletions code/modules/admin/admin_verbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ GLOBAL_PROTECT(admin_verbs_hideable)
return
. = TRUE
if(isobserver(mob))
if(isrogueghost(mob)) // mob/dead/observer/rogue are a lot more limited than 'normal' ghosts
mob.ghostize(FALSE, admin = TRUE)
return
//re-enter
var/mob/dead/observer/ghost = mob
if(!ghost.mind || !ghost.mind.current) //won't do anything if there is no body
Expand Down

0 comments on commit 435d936

Please sign in to comment.