From 822b5729624d8ee2d032c775d89b6592cb0c3c5c Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Wed, 18 Dec 2013 13:50:11 +1030 Subject: [PATCH] Plopped the borer out of the skull when the brain is removed. --- code/modules/surgery/braincore.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/surgery/braincore.dm b/code/modules/surgery/braincore.dm index d94615c953..b9f3fe24a4 100644 --- a/code/modules/surgery/braincore.dm +++ b/code/modules/surgery/braincore.dm @@ -85,12 +85,18 @@ user.visible_message("\blue [user] separates [target]'s brain from \his spine with \the [tool].", \ "\blue You separate [target]'s brain from spine with \the [tool].") + var/mob/living/simple_animal/borer/borer = target.has_brain_worms() + + if(borer) + borer.detatch() //Should remove borer if the brain is removed - RR + user.attack_log += "\[[time_stamp()]\] Debrained [target.name] ([target.ckey]) with [tool.name] (INTENT: [uppertext(user.a_intent)])" target.attack_log += "\[[time_stamp()]\] Debrained by [user.name] ([user.ckey]) with [tool.name] (INTENT: [uppertext(user.a_intent)])" msg_admin_attack("[user.name] ([user.ckey]) debrained [target.name] ([target.ckey]) with [tool.name] (INTENT: [uppertext(user.a_intent)]) (JMP)") var/obj/item/brain/B = new(target.loc) B.transfer_identity(target) + target.internal_organs -= B target:brain_op_stage = 4.0 target.death()//You want them to die after the brain was transferred, so not to trigger client death() twice.