From 065b09fc1cbb59f09665efccb4d6a97674bda7d0 Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Sat, 28 Jan 2023 03:36:34 -0500 Subject: [PATCH] Brains act more like dead humans on examine. (#20074) * Brains act more like humans on examine. * Apply suggestions from code review Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> --------- Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com> Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> --- code/modules/surgery/organs/brain.dm | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/code/modules/surgery/organs/brain.dm b/code/modules/surgery/organs/brain.dm index 7b8720eab14..dae96b5f24f 100644 --- a/code/modules/surgery/organs/brain.dm +++ b/code/modules/surgery/organs/brain.dm @@ -51,10 +51,22 @@ /obj/item/organ/internal/brain/examine(mob/user) // -- TLE . = ..() - if(brainmob && brainmob.client) //if thar be a brain inside... the brain - . += "You can feel the small spark of life still left in this one." - else - . += "This one seems particularly lifeless. Perhaps it will regain some of its luster later.." + if(brainmob && brainmob.client)//if thar be a brain inside... the brain. + . += "You can feel a bright spark of life in this one!" + return + if(brainmob?.mind) + var/foundghost = FALSE + for(var/mob/dead/observer/G in GLOB.player_list) + if(G.mind == brainmob.mind) + foundghost = TRUE + if(G.can_reenter_corpse == FALSE) + foundghost = FALSE + break + if(foundghost) + . += "You can feel the small spark of life still left in this one." + return + + . += "This one seems particularly lifeless. Perhaps it will regain some of its luster later.." /obj/item/organ/internal/brain/remove(mob/living/user, special = 0) if(dna)