From 32db2665a4573ab52f8267652d1e5bd24b4d15dd Mon Sep 17 00:00:00 2001 From: Bram961 Date: Thu, 26 Jun 2014 12:13:01 +0200 Subject: [PATCH] Permanent brain exposure fix A fix too the permanent brain exposure glitch, now brain exposure can be fixed by setting the skull --- code/modules/mob/living/carbon/human/human.dm | 10 +++++++++- code/modules/mob/living/carbon/human/update_icons.dm | 2 +- code/modules/surgery/bones.dm | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index 2593f80bb60..8c6f9d8062a 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -1480,6 +1480,14 @@ update_hair() update_body() +/mob/living/carbon/human/proc/unexpose_brain() + var/datum/organ/external/head/H = get_organ("head") + if(H) + H.brained=0 + update_hair() + update_body() + + /mob/living/carbon/human/canSingulothPull(var/obj/machinery/singularity/singulo) if(!..()) return 0 @@ -1665,4 +1673,4 @@ return threatcount /mob/living/carbon/human/canBeHandcuffed() - return 1 + return 1 diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index 4019f65c7ca..92b0bf29c64 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -262,7 +262,7 @@ proc/get_damage_icon_part(damage_state, body_part) var/datum/organ/external/head/head = part if(head.brained==1) brain_showing = 1 - + else brain_showing = 0 if(part.status & ORGAN_DESTROYED) icon_key = "[icon_key]0" diff --git a/code/modules/surgery/bones.dm b/code/modules/surgery/bones.dm index 75e3b6e0997..97201915c47 100644 --- a/code/modules/surgery/bones.dm +++ b/code/modules/surgery/bones.dm @@ -97,6 +97,7 @@ user.visible_message("\blue [user] sets [target]'s skull with \the [tool]." , \ "\blue You set [target]'s skull with \the [tool].") affected.stage = 2 + target.unexpose_brain() fail_step(mob/living/user, mob/living/carbon/human/target, target_zone, obj/item/tool) var/datum/organ/external/affected = target.get_organ(target_zone)