Fixes singularity not applying its tox damage to mobs. Adjusted its radiation and toxdamage values.

Fixes simple animals that needs to breath not taking damage from lack of gas to breath on space turfs.
Fixes revenant not being spaceworthy.
Fixes simple_animal accumulating radiation indefinitely because they are unaffected by it.
This commit is contained in:
phil235
2015-06-22 16:10:24 +02:00
parent 3f57259c69
commit 1accee1c36
4 changed files with 11 additions and 5 deletions
@@ -361,14 +361,14 @@
var/toxdamage = 4
var/radiation = 15
var/radiationmin = 3
if (src.energy>200)
toxdamage = round(((src.energy-150)/50)*4,1)
radiation = round(((src.energy-150)/50)*5,1)
radiationmin = round((radiation/5),1)//
if (energy>200)
toxdamage += round((energy-150)/30,1)
radiation += round((energy-150)/10,1)
radiationmin = round((radiation/5),1)
for(var/mob/living/M in view(toxrange, src.loc))
M.irradiate(rand(radiationmin,radiation))
toxdamage = (toxdamage - (toxdamage*M.getarmor(null, "rad")))
M.apply_effect(toxdamage, TOX)
M.apply_damage(toxdamage, TOX)
return