Welding helmet flags are updating correctly now.

Diseases will not go below 0 now.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5228 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-11-29 21:12:10 +00:00
parent 727bad70e4
commit 81d3b64d9d
2 changed files with 10 additions and 12 deletions

View File

@@ -64,15 +64,13 @@ var/list/diseases = typesof(/datum/disease) - /datum/disease
if(stage > max_stages)
stage = max_stages
if(stage < max_stages && prob(stage_prob) && !cure_present) //now the disease shouldn't get back up to stage 4 in no time
stage++
//world << "up"
if(stage > 0 && (cure_present && prob(cure_chance)))
stage--
//world << "down"
if(!cure_present && prob(stage_prob)) //now the disease shouldn't get back up to stage 4 in no time
stage = min(stage + 1, max_stages)
else if(cure_present && prob(cure_chance))
stage = max(stage - 1, 1)
if(stage <= 1 && ((prob(1) && curable) || (cure_present && prob(cure_chance))))
// world << "Cured as stage act"
cure()
return
return