Open incisions in surgery now bleed until closed or clamped.

This commit is contained in:
Chinsky
2013-03-14 04:23:07 +04:00
parent b906a22192
commit f8ae612991
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -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)
@@ -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()