fixes #5970, prevents bugs in the future

this is not an issue at the moment but will become one should maxHealth ever get changed.
This commit is contained in:
Walter0o
2014-08-13 03:43:30 +02:00
committed by ZomgPonies
parent 0c02bd02dd
commit ebbeaef854
@@ -1,9 +1,9 @@
/mob/living/silicon/robot/updatehealth()
if(status_flags & GODMODE)
health = 200
health = maxHealth
stat = CONSCIOUS
return
health = 200 - (getBruteLoss() + getFireLoss())
health = maxHealth - (getBruteLoss() + getFireLoss())
return
/mob/living/silicon/robot/getBruteLoss()
@@ -144,4 +144,4 @@
brute -= (picked.brute_damage - brute_was)
burn -= (picked.electronics_damage - burn_was)
parts -= picked
parts -= picked