mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 15:01:04 +01:00
Puts maxHealth instead of hardcoded 100 where it should be (#10405)
This commit is contained in:
@@ -204,7 +204,7 @@ default behaviour is:
|
||||
|
||||
/mob/living/proc/updatehealth()
|
||||
if(status_flags & GODMODE)
|
||||
health = 100
|
||||
health = maxHealth
|
||||
stat = CONSCIOUS
|
||||
else
|
||||
health = maxHealth - getOxyLoss() - getToxLoss() - getFireLoss() - getBruteLoss() - getCloneLoss() - getHalLoss()
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
/mob/living/silicon/decoy/updatehealth()
|
||||
if(status_flags & GODMODE)
|
||||
health = 100
|
||||
health = maxHealth
|
||||
stat = CONSCIOUS
|
||||
else
|
||||
health = 100 - getOxyLoss() - getToxLoss() - getFireLoss() - getBruteLoss()
|
||||
health = maxHealth - getOxyLoss() - getToxLoss() - getFireLoss() - getBruteLoss()
|
||||
|
||||
@@ -31,10 +31,10 @@
|
||||
|
||||
/mob/living/silicon/pai/updatehealth()
|
||||
if(status_flags & GODMODE)
|
||||
health = 100
|
||||
health = maxHealth
|
||||
stat = CONSCIOUS
|
||||
else
|
||||
health = 100 - getBruteLoss() - getFireLoss()
|
||||
health = maxHealth - getBruteLoss() - getFireLoss()
|
||||
|
||||
/mob/living/silicon/pai/Stat()
|
||||
..()
|
||||
@@ -49,4 +49,4 @@
|
||||
stat(null, "Bot M#$FUN90: MALFUNC--")
|
||||
if(istype(card.loc, /mob/living/bot/floorbot))
|
||||
var/mob/living/bot/floorbot/F = card.loc
|
||||
stat(null, "Metal Count: [F.amount]/[F.maxAmount]")
|
||||
stat(null, "Metal Count: [F.amount]/[F.maxAmount]")
|
||||
|
||||
Reference in New Issue
Block a user