mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
[FIX] Guardian health HUD now updates properly when host health changes (#26818)
* Guardian health hud now updates properly * Now with negative numbers! * New signal * remove non-functioning proc * Update code/game/gamemodes/miniantags/guardian/guardian.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: Chap <erwin@lombok.demon.nl> --------- Signed-off-by: Chap <erwin@lombok.demon.nl> Co-authored-by: Adrer <adrermail@gmail.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
|
||||
health = maxHealth - getOxyLoss() - getToxLoss() - getCloneLoss() - total_limb_damage
|
||||
|
||||
SEND_SIGNAL(src, COMSIG_LIVING_HEALTH_UPDATE)
|
||||
update_stat("updatehealth([reason])")
|
||||
med_hud_set_health()
|
||||
|
||||
|
||||
@@ -359,6 +359,7 @@
|
||||
return
|
||||
health = maxHealth - getOxyLoss() - getToxLoss() - getFireLoss() - getBruteLoss() - getCloneLoss()
|
||||
|
||||
SEND_SIGNAL(src, COMSIG_LIVING_HEALTH_UPDATE)
|
||||
update_stat("updatehealth([reason])")
|
||||
med_hud_set_health()
|
||||
med_hud_set_status()
|
||||
|
||||
Reference in New Issue
Block a user