Critical fix: Simple_animal invincibility.

Also removes Halloss from updatehealth() calculations, it doesn't belong
there, and halloss is deprecated regardless.
This commit is contained in:
Tigercat2000
2015-11-04 08:58:58 -08:00
parent 0604c8d16e
commit 460161008c
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -69,7 +69,7 @@
health = maxHealth
stat = CONSCIOUS
return
health = maxHealth - getOxyLoss() - getToxLoss() - getFireLoss() - getBruteLoss() - getCloneLoss() - halloss
health = maxHealth - getOxyLoss() - getToxLoss() - getFireLoss() - getBruteLoss() - getCloneLoss()
//This proc is used for mobs which are affected by pressure to calculate the amount of pressure that actually
@@ -87,9 +87,11 @@
..()
/mob/living/simple_animal/updatehealth()
return
..()
health = Clamp(health, 0, maxHealth)
/mob/living/simple_animal/Life()
updatehealth()
update_gravity(mob_has_gravity())
update_canmove()
@@ -107,9 +109,6 @@
if(health < 1)
Die()
if(health > maxHealth)
health = maxHealth
if(resting && icon_resting && stat != DEAD)
icon_state = icon_resting
else if(icon_resting && stat != DEAD)