V2.3.3
This commit is contained in:
parent
f6d0aad375
commit
d4bf4ec029
15
libs/core.js
15
libs/core.js
@ -764,6 +764,21 @@ core.prototype.updateFg = function () {
|
|||||||
core.control.updateFg();
|
core.control.updateFg();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////// 测试是否拥有某个特殊属性 //////
|
||||||
|
core.prototype.hasSpecial = function (special, test) {
|
||||||
|
return core.enemys.hasSpecial(special, test);
|
||||||
|
}
|
||||||
|
|
||||||
|
////// 判断能否战斗 //////
|
||||||
|
core.prototype.canBattle = function(enemyId) {
|
||||||
|
return core.enemys.canBattle(enemyId);
|
||||||
|
}
|
||||||
|
|
||||||
|
////// 获得伤害数值 //////
|
||||||
|
core.prototype.getDamage = function(enemy) {
|
||||||
|
return core.enemys.getDamage(enemy);
|
||||||
|
}
|
||||||
|
|
||||||
////// 获得某个物品的个数 //////
|
////// 获得某个物品的个数 //////
|
||||||
core.prototype.itemCount = function (itemId) {
|
core.prototype.itemCount = function (itemId) {
|
||||||
return core.items.itemCount(itemId);
|
return core.items.itemCount(itemId);
|
||||||
|
|||||||
@ -6,7 +6,7 @@ function enemys() {
|
|||||||
enemys.prototype.init = function () {
|
enemys.prototype.init = function () {
|
||||||
this.enemys = enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80;
|
this.enemys = enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80;
|
||||||
this.enemydata = functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a.enemys;
|
this.enemydata = functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a.enemys;
|
||||||
this.enemydata.hasSpecial = function (a, b) {return core.enemys.hasSpecial(a, b)};
|
if (main.mode=='play') this.enemydata.hasSpecial = function (a, b) {return core.enemys.hasSpecial(a, b)};
|
||||||
}
|
}
|
||||||
|
|
||||||
////// 获得一个或所有怪物数据 //////
|
////// 获得一个或所有怪物数据 //////
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user