mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-06-29 17:24:40 +01:00
98 lines
2.7 KiB
Plaintext
98 lines
2.7 KiB
Plaintext
/obj/item/organ/brain
|
|
name = "brain"
|
|
health = 400 //They need to live awhile longer than other organs.
|
|
icon_state = "brain2"
|
|
force = 1.0
|
|
w_class = 2.0
|
|
throwforce = 1.0
|
|
throw_speed = 3
|
|
throw_range = 5
|
|
origin_tech = "biotech=3"
|
|
attack_verb = list("attacked", "slapped", "whacked")
|
|
var/mob/living/carbon/brain/brainmob = null
|
|
organ_tag = "brain"
|
|
parent_organ = "head"
|
|
vital = 1
|
|
|
|
/obj/item/organ/brain/xeno
|
|
name = "thinkpan"
|
|
desc = "It looks kind of like an enormous wad of purple bubblegum."
|
|
icon = 'icons/mob/alien.dmi'
|
|
icon_state = "chitin"
|
|
|
|
/obj/item/organ/brain/New()
|
|
..()
|
|
spawn(5)
|
|
if(brainmob && brainmob.client)
|
|
brainmob.client.screen.len = null //clear the hud
|
|
|
|
/obj/item/organ/brain/proc/transfer_identity(var/mob/living/carbon/H)
|
|
name = "\the [H]'s [initial(src.name)]"
|
|
brainmob = new(src)
|
|
brainmob.name = H.real_name
|
|
brainmob.real_name = H.real_name
|
|
brainmob.dna = H.dna.Clone()
|
|
brainmob.timeofhostdeath = H.timeofdeath
|
|
if(H.mind)
|
|
H.mind.transfer_to(brainmob)
|
|
|
|
brainmob << "<span class='notice'>You feel slightly disoriented. That's normal when you're just a [initial(src.name)].</span>"
|
|
callHook("debrain", list(brainmob))
|
|
|
|
/obj/item/organ/brain/examine(mob/user) // -- TLE
|
|
..(user)
|
|
if(brainmob && brainmob.client)//if thar be a brain inside... the brain.
|
|
user << "You can feel the small spark of life still left in this one."
|
|
else
|
|
user << "This one seems particularly lifeless. Perhaps it will regain some of its luster later.."
|
|
|
|
/obj/item/organ/brain/removed(var/mob/living/user)
|
|
|
|
if(!owner) return ..() // Probably a redundant removal; just bail
|
|
name = "[owner.real_name]'s brain"
|
|
|
|
var/mob/living/simple_animal/borer/borer = owner.has_brain_worms()
|
|
|
|
if(borer)
|
|
borer.detatch() //Should remove borer if the brain is removed - RR
|
|
|
|
owner.brain_op_stage = 4.0
|
|
|
|
var/obj/item/organ/brain/B = src
|
|
if(istype(B) && istype(owner))
|
|
B.transfer_identity(owner)
|
|
|
|
..()
|
|
|
|
/obj/item/organ/brain/replaced(var/mob/living/target)
|
|
|
|
if(target.key)
|
|
target.ghostize()
|
|
var/mob/living/carbon/C = target
|
|
if(istype(C))
|
|
C.brain_op_stage = 1.0
|
|
if(brainmob)
|
|
if(brainmob.mind)
|
|
brainmob.mind.transfer_to(target)
|
|
else
|
|
target.key = brainmob.key
|
|
..()
|
|
|
|
/obj/item/organ/brain/slime
|
|
name = "slime core"
|
|
desc = "A complex, organic knot of jelly and crystalline particles."
|
|
icon = 'icons/mob/slimes.dmi'
|
|
icon_state = "green slime extract"
|
|
|
|
/obj/item/organ/brain/golem
|
|
name = "chem"
|
|
desc = "A tightly furled roll of paper, covered with indecipherable runes."
|
|
icon = 'icons/obj/wizard.dmi'
|
|
icon_state = "scroll"
|
|
|
|
/obj/item/organ/brain/Destroy() //copypasted from MMIs.
|
|
if(brainmob)
|
|
qdel(brainmob)
|
|
brainmob = null
|
|
return ..()
|