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.
This commit is contained in:
Amunak
2014-12-04 11:35:04 +01:00
parent 5fc6518e21
commit 9fe0cdac28
+9 -1
View File
@@ -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