Fix bugs: cannotEquip & heroMoving & hideBlock
This commit is contained in:
parent
ecd6ff76b4
commit
476bf71490
@ -427,10 +427,12 @@ function (enemy, hero_hp, hero_atk, hero_def, hero_mdef, x, y, floorId) {
|
|||||||
``` js
|
``` js
|
||||||
////// 点击楼层传送器时的打开操作 //////
|
////// 点击楼层传送器时的打开操作 //////
|
||||||
control.prototype.useFly = function (need) {
|
control.prototype.useFly = function (need) {
|
||||||
if (!core.status.heroStop) {
|
if (!core.status.heroStop || core.status.heroMoving > 0) {
|
||||||
core.drawTip("请先停止勇士行动");
|
core.drawTip("请先停止勇士行动");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (core.status.lockControl || core.status.event.id != null) return;
|
||||||
|
|
||||||
if (core.canUseItem('fly')) core.useItem('fly');
|
if (core.canUseItem('fly')) core.useItem('fly');
|
||||||
else core.drawTip("当前无法使用"+core.material.items.fly.name);
|
else core.drawTip("当前无法使用"+core.material.items.fly.name);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -320,6 +320,7 @@ items.prototype.loadEquip = function (equipId, callback) {
|
|||||||
var type = this.getEquipTypeById(equipId);
|
var type = this.getEquipTypeById(equipId);
|
||||||
if (type < 0) {
|
if (type < 0) {
|
||||||
core.drawTip("当前没有"+loadEquip.equip.type+"的空位!");
|
core.drawTip("当前没有"+loadEquip.equip.type+"的空位!");
|
||||||
|
if (core.isset(callback)) callback();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1377,7 +1377,7 @@ maps.prototype.hideBlock = function (x, y, floorId) {
|
|||||||
core.clearMap('event2', x * 32, y * 32 +32-height, 32, height-32);
|
core.clearMap('event2', x * 32, y * 32 +32-height, 32, height-32);
|
||||||
}
|
}
|
||||||
|
|
||||||
block.disable = true;
|
block.block.disable = true;
|
||||||
core.updateStatusBar();
|
core.updateStatusBar();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -745,7 +745,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
|||||||
// 可以在这里任意增加或编辑每个按键的行为
|
// 可以在这里任意增加或编辑每个按键的行为
|
||||||
|
|
||||||
// 如果处于正在行走状态,则不处理
|
// 如果处于正在行走状态,则不处理
|
||||||
if (!core.status.heroStop)
|
if (!core.status.heroStop || core.status.heroMoving > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Alt+0~9,快捷换上套装
|
// Alt+0~9,快捷换上套装
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user