From 9fe0cdac28e63de2c08c05000c0f2e777ba848a2 Mon Sep 17 00:00:00 2001 From: Amunak Date: Thu, 4 Dec 2014 11:35:04 +0100 Subject: [PATCH] Admins will now receive a prompt to use aghost when they use ghost. It replaces the usual prompt that was irrelevant to admins anyway. Adds option for admins to aghost from the ghost prompt. --- code/modules/mob/dead/observer/observer.dm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index c5e1afbc4c..c555815ac4 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -168,7 +168,15 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp if(stat == DEAD) announce_ghost_joinleave(ghostize(1)) else - var/response = alert(src, "Are you -sure- you want to ghost?\n(You are alive. If you ghost, you won't be able to play this round for another 30 minutes! You can't change your mind so choose wisely!)","Are you sure you want to ghost?","Ghost","Stay in body") + var/response + if(src.client && src.client.holder) + response = alert(src, "You have the ability to Admin-Ghost. Ghosting regularly will announce you to the dead chat. Anyway you will be allowed to return to body using 'aghost'. What do you want to do?", "Are you sure you want to ghost?", "Ghost", "Admin Ghost", "Stay in body") + if(response == "Admin Ghost") + if(!src.client) + return + src.client.admin_ghost() + else + response = alert(src, "Are you -sure- you want to ghost?\n(You are alive. If you ghost, you won't be able to play this round for another 30 minutes! You can't change your mind so choose wisely!)", "Are you sure you want to ghost?", "Ghost", "Stay in body") if(response != "Ghost") return resting = 1