adjust damage color

This commit is contained in:
ckcz123 2020-06-24 15:05:41 +08:00
parent 06501777b1
commit e3d9afe442

View File

@ -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 += "-";