Adds logging and admin announce to admin ghosting.

This commit is contained in:
Kyle Spier-Swenson
2015-10-05 20:56:15 -07:00
parent 6d59b5af14
commit d1d7fb932c
+6 -1
View File
@@ -314,6 +314,9 @@ var/list/admin_verbs_hideable = list(
if(istype(mob,/mob/dead/observer))
//re-enter
var/mob/dead/observer/ghost = mob
if (!ghost.can_reenter_corpse)
log_admin("[key_name(usr)] re-entered corpse")
message_admins("[key_name_admin(usr)] re-entered corpse")
ghost.can_reenter_corpse = 1 //just in-case.
ghost.reenter_corpse()
feedback_add_details("admin_verb","P") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
@@ -321,6 +324,8 @@ var/list/admin_verbs_hideable = list(
src << "<font color='red'>Error: Aghost: Can't admin-ghost whilst in the lobby. Join or Observe first.</font>"
else
//ghostize
log_admin("[key_name(usr)] admin ghosted")
message_admins("[key_name_admin(usr)] admin ghosted")
var/mob/body = mob
body.ghostize(1)
if(body && !body.key)
@@ -636,4 +641,4 @@ var/list/admin_verbs_hideable = list(
mob = new/mob/living/carbon/human/interactive(tile)
testing("Spawned test mob with name \"[mob.name]\" at [tile.x],[tile.y],[tile.z]")
while (!area && --j > 0)
while (!area && --j > 0)