Several fixes to germs.

This commit is contained in:
cib
2012-11-12 13:17:11 +01:00
parent e92cecdefe
commit 95181d96a8
5 changed files with 22 additions and 7 deletions

View File

@@ -281,7 +281,7 @@
if(W.bleeding()) this_wound_desc = "bleeding [this_wound_desc]"
else if(W.bandaged) this_wound_desc = "bandaged [this_wound_desc]"
if(W.germ_level > 1000) this_wound_desc = "badly infected [this_wound_desc]"
else if(W.germ_level > 100) this_wound_desc = "infected [this_wound_desc]"
else if(W.germ_level > 100) this_wound_desc = "lightly infected [this_wound_desc]"
if(this_wound_desc in wound_descriptors)
wound_descriptors[this_wound_desc] += W.amount
continue

View File

@@ -1167,10 +1167,11 @@
if(druggy)
druggy = max(druggy-1, 0)
// Increase germ_level by 1 on each life tick
germ_level += 1
// Increase germ_level regularly
if(prob(40))
germ_level += 1
// If you're dirty, your gloves will become dirty, too.
if(gloves && germ_level > gloves.germ_level && prob(30))
if(gloves && germ_level > gloves.germ_level && prob(10))
gloves.germ_level += 1
return 1