mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Fixes germ_level going negative (#11850)
This commit is contained in:
@@ -326,11 +326,11 @@
|
||||
if(antibiotics >= 5)
|
||||
germ_level = 0 //just finish up this small infection
|
||||
else
|
||||
germ_level -= antibiotics * 5 //Clears very quickly, finishing up remnants of infection
|
||||
germ_level = max(germ_level - (antibiotics * 5), 0) //Clears very quickly, finishing up remnants of infection
|
||||
else if(germ_level <= INFECTION_LEVEL_TWO)
|
||||
germ_level -= min(antibiotics, 6) //Still quick, infection's not too bad. At max dose and germ_level 500, should take a minute or two
|
||||
germ_level = max(germ_level - min(antibiotics, 6), 0) //Still quick, infection's not too bad. At max dose and germ_level 500, should take a minute or two
|
||||
else
|
||||
germ_level -= min(antibiotics * 0.5, 3) //Big infections, very slow to stop. At max dose and germ_level 1000, should take five to six minutes
|
||||
germ_level = max(germ_level - min(antibiotics * 0.5, 3), 0) //Big infections, very slow to stop. At max dose and germ_level 1000, should take five to six minutes
|
||||
|
||||
//Adds autopsy data for used_weapon.
|
||||
/obj/item/organ/proc/add_autopsy_data(var/used_weapon, var/damage)
|
||||
|
||||
Reference in New Issue
Block a user