mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Allows for brainmobs (particularly, robo-brains) to ghost (#25774)
* gives brains free ghosting, if they so desire * if you're in a bag or something, probably better * add prompting
This commit is contained in:
@@ -241,6 +241,15 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
return
|
||||
ghostize(TRUE)
|
||||
return
|
||||
if(isbrain(M) && isturf(M.loc))
|
||||
// let a brain ghost out if they want to, but also let them freely re-enter their brain.
|
||||
var/mob/dead/observer/ghost = ghostize(TRUE)
|
||||
ghost.can_reenter_corpse = FALSE
|
||||
if(tgui_alert(src, "Ghosting from this brain means you'll be respawnable but will be kicked out of your brain, which someone else could take over. Is this what you want?", "Ghost", list("Stay in Brain", "Ghost") != "Ghost"))
|
||||
return
|
||||
|
||||
log_admin("[key_name(M)] has ghosted as a brain-mob, but is keeping respawnability.")
|
||||
return
|
||||
if(P)
|
||||
if(TOO_EARLY_TO_GHOST)
|
||||
warningmsg = "It's too early in the shift to enter cryo"
|
||||
|
||||
Reference in New Issue
Block a user