From b39abf59faf81c545e0887342bf63e088bafd18f Mon Sep 17 00:00:00 2001 From: mwerezak Date: Thu, 19 Jun 2014 22:41:32 -0400 Subject: [PATCH] Spaceacillin cures infected organs --- code/modules/organs/organ_external.dm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/code/modules/organs/organ_external.dm b/code/modules/organs/organ_external.dm index 37fbc4e04fd..85b3d88ce21 100644 --- a/code/modules/organs/organ_external.dm +++ b/code/modules/organs/organ_external.dm @@ -302,7 +302,7 @@ This function completely restores a damaged organ to perfect condition. return 1 else last_dam = brute_dam + burn_dam - if(germ_level > GANGREN_LEVEL_ONE) + if(germ_level) return 1 return 0 @@ -358,12 +358,15 @@ This function completely restores a damaged organ to perfect condition. if (W.germ_level > germ_level) //Badly infected wounds raise internal germ levels germ_level++ + var/antibiotics = owner.reagents.get_reagent_amount("spaceacillin") + if (antibiotics > 5) + if (prob(4*antibiotics)) germ_level-- + if(germ_level > GANGREN_LEVEL_ONE && prob(round(germ_level/10))) //aiming for a light infection to become serious after 40 minutes, standing still germ_level += 1 - if (prob(50)) - owner.adjustToxLoss(1) + owner.adjustToxLoss(1) - if(germ_level > GANGREN_LEVEL_TWO) + if(germ_level > GANGREN_LEVEL_TWO && antibiotics < 30) //overdosing is necessary to stop severe infections germ_level++ owner.adjustToxLoss(1)