fix tiny bugs

This commit is contained in:
ckcz123 2019-09-10 18:42:58 +08:00
parent a97f9b6f6d
commit ab6285bc73
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -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));