fix tiny bugs
This commit is contained in:
parent
a97f9b6f6d
commit
ab6285bc73
@ -1391,9 +1391,7 @@ control.prototype.__replay_getTimeout = function () {
|
|||||||
|
|
||||||
control.prototype._replayAction_move = function (action) {
|
control.prototype._replayAction_move = function (action) {
|
||||||
if (["up","down","left","right"].indexOf(action)<0) return false;
|
if (["up","down","left","right"].indexOf(action)<0) return false;
|
||||||
core.moveHero(action, function () {
|
core.moveHero(action, core.replay);
|
||||||
setTimeout(core.replay);
|
|
||||||
});
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2396,7 +2396,7 @@ ui.prototype._drawEquipbox_drawStatusChanged = function (info, y, equip, equipTy
|
|||||||
else { // 绘制文字
|
else { // 绘制文字
|
||||||
this._drawEquipbox_drawStatusChanged_draw(text + " ", '#CCCCCC', obj);
|
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) {
|
if (equip.equip.percentage) {
|
||||||
var nowBuff = core.getBuff(name), newBuff = nowBuff + compare[name] / 100;
|
var nowBuff = core.getBuff(name), newBuff = nowBuff + compare[name] / 100;
|
||||||
nowValue = Math.floor(nowBuff * core.getStatus(name));
|
nowValue = Math.floor(nowBuff * core.getStatus(name));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user