This commit is contained in:
ckcz123 2018-07-22 15:11:33 +08:00
parent f6d0aad375
commit d4bf4ec029
2 changed files with 16 additions and 1 deletions

View File

@ -764,6 +764,21 @@ core.prototype.updateFg = function () {
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) {
return core.items.itemCount(itemId);

View File

@ -6,7 +6,7 @@ function enemys() {
enemys.prototype.init = function () {
this.enemys = enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80;
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)};
}
////// 获得一个或所有怪物数据 //////