From 33d14612939dff70663e0875d71f9c7d373fa4d9 Mon Sep 17 00:00:00 2001 From: ZomgPonies Date: Sun, 12 Jan 2014 23:14:35 -0500 Subject: [PATCH] Showing brain part deux --- code/modules/mob/living/carbon/human/examine.dm | 4 ++++ code/modules/mob/living/carbon/human/human.dm | 9 +++++++++ code/modules/organs/organ_external.dm | 6 +----- code/modules/surgery/braincore.dm | 1 + 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/code/modules/mob/living/carbon/human/examine.dm b/code/modules/mob/living/carbon/human/examine.dm index 44e3f7d318d..d11401b98c2 100644 --- a/code/modules/mob/living/carbon/human/examine.dm +++ b/code/modules/mob/living/carbon/human/examine.dm @@ -389,6 +389,10 @@ if(display_gloves) msg += "[src] has blood running from under [t_his] gloves!\n" + var/datum/organ/external/head/H = get_organ("head") + if(H && H.brained) + msg += "[src]'s skull is crushed and the brain is exposed to the air!\n" + for(var/implant in get_visible_implants(1)) msg += "[src] has \a [implant] sticking out of their flesh!\n" if(digitalcamo) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index cdb622b9588..8ad1f4d427c 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1426,3 +1426,12 @@ mob/living/carbon/human/yank_out_object() var/obj/effect/decal/cleanable/blood/writing/W = new(T) W.message = message W.add_fingerprint(src) + +/mob/living/carbon/human/proc/expose_brain() + var/datum/organ/external/head/H = get_organ("head") + if(H) + H.brained=1 + h_style = "Bald" + drop_from_inventory(head) + update_hair() + update_body() \ No newline at end of file diff --git a/code/modules/organs/organ_external.dm b/code/modules/organs/organ_external.dm index abbcbaf5b7d..974647ef018 100644 --- a/code/modules/organs/organ_external.dm +++ b/code/modules/organs/organ_external.dm @@ -797,11 +797,7 @@ This function completely restores a damaged organ to perfect condition. owner.visible_message("\red The top of \the [owner]'s skull breaks, exposing the brain help within.", \ "\red Unbearable pain hits you as the top of your skull breaks and exposes your brain!", \ "\red You hear a sickening crack.") - brained = 1 - owner.h_style = "Bald" - owner.drop_from_inventory(owner.head) - owner.update_hair() - owner.update_body() + owner.expose_brain() /**************************************************** EXTERNAL ORGAN ITEMS diff --git a/code/modules/surgery/braincore.dm b/code/modules/surgery/braincore.dm index 46b88031244..689ac9e3c2d 100644 --- a/code/modules/surgery/braincore.dm +++ b/code/modules/surgery/braincore.dm @@ -30,6 +30,7 @@ user.visible_message("\blue [user] has cut through [target]'s skull open with \the [tool].", \ "\blue You have cut through [target]'s skull open with \the [tool].") target.brain_op_stage = 2 + target.expose_brain() fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) user.visible_message("\red [user]'s hand slips, cracking [target]'s skull with \the [tool]!" , \