Fixes two more runtimes (#21278)

* I don't know what this equation is supposed to do, but byond does not support imaginary numbers out of the box

* Sanity check for bombs

* Assume 0 value if negative.

* There is no revert commit button on github.
This commit is contained in:
AnturK
2016-10-31 20:37:08 +01:00
committed by duncathan salt
parent 373cfd8303
commit 8a66f3147b
@@ -36,6 +36,6 @@ Bonus
return
/datum/symptom/fever/proc/Heat(mob/living/M, datum/disease/advance/A)
var/get_heat = (sqrt(21+A.totalTransmittable()*2))+(sqrt(20+A.totalStageSpeed()*3))
var/get_heat = (sqrt(max(21,21+A.totalTransmittable()*2)))+(sqrt(max(21,20+A.totalStageSpeed()*3)))
M.bodytemperature = min(M.bodytemperature + (get_heat * A.stage), BODYTEMP_HEAT_DAMAGE_LIMIT - 1)
return 1
return 1