From ab6285bc73ba4fce84fa594813392e8788c14416 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Tue, 10 Sep 2019 18:42:58 +0800 Subject: [PATCH] fix tiny bugs --- libs/control.js | 4 +--- libs/ui.js | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/control.js b/libs/control.js index 9a981c78..32c17f4c 100644 --- a/libs/control.js +++ b/libs/control.js @@ -1391,9 +1391,7 @@ control.prototype.__replay_getTimeout = function () { control.prototype._replayAction_move = function (action) { if (["up","down","left","right"].indexOf(action)<0) return false; - core.moveHero(action, function () { - setTimeout(core.replay); - }); + core.moveHero(action, core.replay); return true; } diff --git a/libs/ui.js b/libs/ui.js index ae81e542..fe5f3eed 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -2396,7 +2396,7 @@ ui.prototype._drawEquipbox_drawStatusChanged = function (info, y, equip, equipTy else { // 绘制文字 this._drawEquipbox_drawStatusChanged_draw(text + " ", '#CCCCCC', obj); } - var nowValue = core.getStatus(name) * core.getBuff(name), newValue = (nowValue + compare[name]) * core.getBuff(name); + var nowValue = core.getStatus(name) * core.getBuff(name), newValue = (core.getStatus(name) + compare[name]) * core.getBuff(name); if (equip.equip.percentage) { var nowBuff = core.getBuff(name), newBuff = nowBuff + compare[name] / 100; nowValue = Math.floor(nowBuff * core.getStatus(name));