Another 515 Casualty (#16017)

This commit is contained in:
Wildkins
2023-03-13 00:34:00 +00:00
committed by GitHub
parent 9c18846eb5
commit cc2966ff34
4 changed files with 38 additions and 34 deletions
+14 -15
View File
@@ -196,21 +196,20 @@
else
healths.icon_state = "health6"
else
switch(health)
if(200 to INFINITY)
healths.icon_state = "health0"
if(150 to 200)
healths.icon_state = "health1"
if(100 to 150)
healths.icon_state = "health2"
if(50 to 100)
healths.icon_state = "health3"
if(0 to 50)
healths.icon_state = "health4"
if(config.health_threshold_dead to 0)
healths.icon_state = "health5"
else
healths.icon_state = "health6"
if(health >= 200)
healths.icon_state = "health0"
else if(health >= 150)
healths.icon_state = "health1"
else if(health >= 100)
healths.icon_state = "health2"
else if(health >= 50)
healths.icon_state = "health3"
else if(health >= 0)
healths.icon_state = "health4"
else if(health >= config.health_threshold_dead)
healths.icon_state = "health5"
else
healths.icon_state = "health6"
else
healths.icon_state = "health7"