add logging for ghosting (incl. special log for admin ghosting) (#34974)

* add logging for admin ghosting

* spacing

* better ghost logging implementation

* remove worse implementation of ghost logging
This commit is contained in:
nervere
2023-10-06 21:48:57 +00:00
committed by GitHub
parent fc8ecbe676
commit 5dfbd696c0

View File

@@ -383,6 +383,7 @@ Works together with spawning an observer, noted above.
/mob/proc/ghostize(var/flags = GHOST_CAN_REENTER,var/deafmute = 0) /mob/proc/ghostize(var/flags = GHOST_CAN_REENTER,var/deafmute = 0)
if(key && !(copytext(key,1,2)=="@")) if(key && !(copytext(key,1,2)=="@"))
log_admin("[key_name(src)] is now a[src.client.holder ? "n admin-" : " "]ghost.")
var/ghostype = /mob/dead/observer var/ghostype = /mob/dead/observer
if (deafmute) if (deafmute)
ghostype = /mob/dead/observer/deafmute ghostype = /mob/dead/observer/deafmute