adjust damage color
This commit is contained in:
parent
06501777b1
commit
e3d9afe442
@ -2052,7 +2052,8 @@ ui.prototype._drawBook_drawDamage = function (index, enemy, offset, position) {
|
||||
}
|
||||
else {
|
||||
if (damage >= core.status.hero.hp) color = '#FF2222';
|
||||
if (damage <= 0) color = '#11FF11';
|
||||
else if (damage >= core.status.hero.hp * 2 / 3) color = '#FFAA33';
|
||||
else if (damage <= 0) color = '#11FF11';
|
||||
damage = core.formatBigNumber(damage);
|
||||
if (core.enemys.hasSpecial(enemy, 19)) damage += "+";
|
||||
if (core.enemys.hasSpecial(enemy, 21)) damage += "-";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user