Line 51: |
Line 51: |
| local function formatHp(hps, maxHp) | | local function formatHp(hps, maxHp) |
| local minHp = U.imin(hps) | | local minHp = U.imin(hps) |
− | if minHp / maxHp <= 0.75 then | + | if minHp / maxHp <= 0.5 then |
− | return string.format('{{color|orangered|{{tooltip|~/%s|%s}}}}', maxHp, U.ijoin(hps, ', '))
| |
− | elseif minHp / maxHp <= 0.5 then
| |
| return string.format('{{color|red|{{tooltip|~/%s|%s}}}}', maxHp, U.ijoin(hps, ', ')) | | return string.format('{{color|red|{{tooltip|~/%s|%s}}}}', maxHp, U.ijoin(hps, ', ')) |
| + | elseif minHp / maxHp <= 0.75 then |
| + | return string.format('{{color|coral|{{tooltip|~/%s|%s}}}}', maxHp, U.ijoin(hps, ', ')) |
| else | | else |
| return string.format('{{tooltip|~/%s|%s}}', maxHp, U.ijoin(hps, ', ')) | | return string.format('{{tooltip|~/%s|%s}}', maxHp, U.ijoin(hps, ', ')) |