Merge pull request #4459 from VOREStation/vplk-mob-life-speedup

Use mutable_appearance for HUD health overlays.
This commit is contained in:
Neerti
2017-12-26 22:36:27 -05:00
committed by GitHub
+5 -3
View File
@@ -1211,8 +1211,9 @@
healths.icon_state = "health_numb"
else
// Generate a by-limb health display.
healths.icon_state = "blank"
healths.overlays = null
var/mutable_appearance/healths_ma = new(healths)
healths_ma.icon_state = "blank"
healths_ma.overlays = null
var/no_damage = 1
var/trauma_val = 0 // Used in calculating softcrit/hardcrit indicators.
@@ -1240,7 +1241,8 @@
else if(no_damage)
health_images += image('icons/mob/screen1_health.dmi',"fullhealth")
healths.overlays += health_images
healths_ma.overlays += health_images
healths.appearance = healths_ma
if(nutrition_icon)
switch(nutrition)