From e3d9afe4420a9ec89a1e2ddba3e664acf37b633f Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Wed, 24 Jun 2020 15:05:41 +0800 Subject: [PATCH] adjust damage color --- libs/ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/ui.js b/libs/ui.js index 0b04f68d..a6ad2eb0 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -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 += "-";