From 6666e0cc3e69e6be806f92f52fef7fc572676db0 Mon Sep 17 00:00:00 2001 From: Ater Ignis Date: Mon, 29 Oct 2012 14:35:50 +0400 Subject: [PATCH] fixed i=5 crutch I accept, that was really silly --- code/modules/mob/living/carbon/human/life.dm | 49 ++++++++++---------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index 386ed1b9f29..7171da3e95d 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -370,30 +370,31 @@ if(halloss != 0) damages+="hal" - switch(pick(damages)) - if("tox") - adjustToxLoss(-1) - healed = 1 - if("oxy") - adjustOxyLoss(-1) - healed = 1 - if("clone") - adjustCloneLoss(-1) - healed = 1 - if("brute") - heal_organ_damage(1,0) - healed = 1 - if("burn") - heal_organ_damage(0,1) - healed = 1 - if("hal") - if(halloss > 0) - halloss -= 1 - if(halloss < 0) - halloss = 0 - healed = 1 - else - i=5 + if(damages.len) + switch(pick(damages)) + if("tox") + adjustToxLoss(-1) + healed = 1 + if("oxy") + adjustOxyLoss(-1) + healed = 1 + if("clone") + adjustCloneLoss(-1) + healed = 1 + if("brute") + heal_organ_damage(1,0) + healed = 1 + if("burn") + heal_organ_damage(0,1) + healed = 1 + if("hal") + if(halloss > 0) + halloss -= 1 + if(halloss < 0) + halloss = 0 + healed = 1 + else + break if(healed) if(prob(5))