mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-23 03:57:48 +01:00
Merge pull request #4459 from VOREStation/vplk-mob-life-speedup
Use mutable_appearance for HUD health overlays.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user