From f8ae612991df5852ec3bbf3fef6a3820a8b36100 Mon Sep 17 00:00:00 2001 From: Chinsky Date: Thu, 14 Mar 2013 04:23:07 +0400 Subject: [PATCH] Open incisions in surgery now bleed until closed or clamped. --- code/datums/organs/organ_external.dm | 6 ++++++ code/modules/mob/living/carbon/human/life.dm | 2 ++ 2 files changed, 8 insertions(+) diff --git a/code/datums/organs/organ_external.dm b/code/datums/organs/organ_external.dm index 31dc038c2cb..c77431dec30 100644 --- a/code/datums/organs/organ_external.dm +++ b/code/datums/organs/organ_external.dm @@ -348,6 +348,7 @@ brute_dam = 0 burn_dam = 0 status &= ~ORGAN_BLEEDING + var/clamped = 0 for(var/datum/wound/W in wounds) if(W.damage_type == CUT || W.damage_type == BRUISE) brute_dam += W.damage @@ -357,8 +358,13 @@ if(!(status & ORGAN_ROBOT) && W.bleeding()) status |= ORGAN_BLEEDING + clamped |= W.clamped + number_wounds += W.amount + if (open && !clamped) //things tend to bleed if they are CUT OPEN + status |= ORGAN_BLEEDING + // new damage icon system // adjusted to set damage_state to brute/burn code only (without r_name0 as before) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 923e75ade4e..959a9fceebe 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -223,6 +223,8 @@ var/const/BLOOD_VOLUME_SURVIVE = 122 blood_max += W.damage / 4 if(temp.status & ORGAN_DESTROYED && !(temp.status & ORGAN_GAUZED) && !temp.amputated) blood_max += 20 //Yer missing a fucking limb. + if (temp.open) + blood_max += 2 //Yer stomach is cut open drip(blood_max) proc/handle_disabilities()