Tweaks infections

Conflicts:
	code/modules/organs/organ_external.dm
This commit is contained in:
mwerezak
2014-07-23 08:59:23 -04:00
committed by ZomgPonies
parent fa8afbc09e
commit 0f49c165d2
+4 -4
View File
@@ -155,14 +155,14 @@
// sync the organ's damage with its wounds
src.update_damages()
//If limb took enough damage, try to cut or tear it off
if(body_part != UPPER_TORSO && body_part != LOWER_TORSO) //as hilarious as it is, getting hit on the chest too much shouldn't effectively gib you.
if(config.limbs_can_break && brute_dam >= max_damage * config.organ_health_multiplier)
if( (edge && prob(5 * brute)) || (brute > 20 && prob(2 * brute)) )
droplimb(1)
return
owner.updatehealth()
var/result = update_icon()
@@ -399,13 +399,13 @@ Note that amputating the affected organ does in fact remove the infection from t
var/fever_temperature = (owner.species.heat_level_1 - owner.species.body_temperature - 1)* min(germ_level/(INFECTION_LEVEL_ONE+300), 1) + owner.species.body_temperature
if (owner.bodytemperature < fever_temperature)
//world << "fever: [owner.bodytemperature] < [fever_temperature], raising temperature."
owner.bodytemperature++
owner.bodytemperature += min(10, fever_temperature - owner.bodytemperature) //unfortunately this needs to be pretty large due to how small BODYTEMP_COLD_DIVISOR is.
if(prob(round(germ_level/10)))
if (antibiotics < 5)
germ_level++
if (prob(5)) //adjust this to tweak how fast people take toxin damage from infections
if (prob(20)) //adjust this to tweak how fast people take toxin damage from infections
owner.adjustToxLoss(1)
if(germ_level >= INFECTION_LEVEL_TWO && antibiotics < 5)