From b4f1c4ed9fc8a04e890c3a98d21176fa5f87249a Mon Sep 17 00:00:00 2001 From: cib Date: Mon, 6 Aug 2012 14:01:36 -0700 Subject: [PATCH] Fixed yet another derp with organs --- code/modules/mob/living/carbon/human/life.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 153ad5d7a13..3e9077e5e97 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -905,13 +905,15 @@ // recalculate number of wounds number_wounds = 0 + for(var/name in organs) + var/datum/organ/external/E = organs[name] + for(var/datum/wound/W in E.wounds) + number_wounds++ var/leg_tally = 2 for(var/name in organs) var/datum/organ/external/E = organs[name] E.process() - for(var/datum/wound/W in E.wounds) - number_wounds++ if(E.status & ORGAN_ROBOT && prob(E.brute_dam + E.burn_dam)) if(E.name == "l_hand" || E.name == "l_arm") if(hand && equipped())