Required spaceacillin levels no longer scale

The amount of spaceacillin required to stop infections is now a flat 5
units, instead of scaling with germ_level.
This commit is contained in:
mwerezak
2014-07-06 15:53:41 -04:00
committed by ZomgPonies
parent ffd2c1ce42
commit 044399e6f0
3 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -20,8 +20,9 @@
//Germs
/datum/organ/proc/get_cure_threshold()
//before reaching level three, the amount of spaceacillin required to cure infections scales between 5 and 30 units
var/germ_scale = max((germ_level - INFECTION_LEVEL_ONE)/(INFECTION_LEVEL_THREE - INFECTION_LEVEL_ONE), 0)
return min(5 + germ_scale*25, 30)
//var/germ_scale = max((germ_level - INFECTION_LEVEL_ONE)/(INFECTION_LEVEL_THREE - INFECTION_LEVEL_ONE), 0)
//return min(5 + germ_scale*25, 30)
return 5 //Based on Hubble's suggestion
/datum/organ/proc/handle_antibiotics()
var/antibiotics = owner.reagents.get_reagent_amount("spaceacillin")
+1 -1
View File
@@ -401,7 +401,7 @@ Note that amputating the affected organ does in fact remove the infection from t
if (prob(3)) //adjust this to tweak how fast people take toxin damage from infections
owner.adjustToxLoss(1)
if(germ_level >= INFECTION_LEVEL_TWO && antibiotics < cure_threshold - 5) //should start at around 8 units of spaceacillin
if(germ_level >= INFECTION_LEVEL_TWO && antibiotics < cure_threshold)
//spread the infection
for (var/datum/organ/internal/I in internal_organs)
if (I.germ_level < germ_level)
+1 -1
View File
@@ -59,7 +59,7 @@
if (germ_level >= INFECTION_LEVEL_TWO)
var/datum/organ/external/parent = owner.get_organ(parent_organ)
//spread germs
if (antibiotics < get_cure_threshold() - 5 && parent.germ_level < germ_level && ( parent.germ_level < INFECTION_LEVEL_ONE*2 || prob(30) ))
if (antibiotics < get_cure_threshold() && parent.germ_level < germ_level && ( parent.germ_level < INFECTION_LEVEL_ONE*2 || prob(30) ))
parent.germ_level++
if (prob(3)) //about once every 30 seconds