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>
This commit is contained in:
Qwertytoforty
2023-01-28 03:36:34 -05:00
committed by GitHub
parent 3963f9b070
commit 065b09fc1c
+16 -4
View File
@@ -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)