From ebbeaef85457bfa662118bd01cc7989e62370e70 Mon Sep 17 00:00:00 2001 From: Walter0o Date: Wed, 13 Aug 2014 03:43:30 +0200 Subject: [PATCH] fixes #5970, prevents bugs in the future this is not an issue at the moment but will become one should maxHealth ever get changed. --- code/modules/mob/living/silicon/robot/robot_damage.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/modules/mob/living/silicon/robot/robot_damage.dm b/code/modules/mob/living/silicon/robot/robot_damage.dm index b9ca3a4c512..81df60fa1e5 100644 --- a/code/modules/mob/living/silicon/robot/robot_damage.dm +++ b/code/modules/mob/living/silicon/robot/robot_damage.dm @@ -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 \ No newline at end of file + parts -= picked