变更真实属性函数
This commit is contained in:
parent
59f6a4bb7a
commit
de4db36455
@ -391,8 +391,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
}
|
||||
// 退化
|
||||
if (core.enemys.hasSpecial(special, 21)) {
|
||||
core.status.hero.atk -= (enemy.atkValue || 0);
|
||||
core.status.hero.def -= (enemy.defValue || 0);
|
||||
core.status.hero.atk -= core.getEnemyValue(enemy, "atkValue", x, y) || 0;
|
||||
core.status.hero.def -= core.getEnemyValue(enemy, "defValue", x, y) || 0;
|
||||
if (core.status.hero.atk < 0) core.status.hero.atk = 0;
|
||||
if (core.status.hero.def < 0) core.status.hero.def = 0;
|
||||
}
|
||||
@ -774,29 +774,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
mon_mdef = core.getEnemyValue(enemy, "mdef", x, y, floorId) || 0,
|
||||
mon_spell = core.getEnemyValue(enemy, "spell", x, y, floorId) || 0,
|
||||
mon_speed = core.getEnemyValue(enemy, "speed", x, y, floorId) || 1,
|
||||
mon_special = core.getEnemyValue(enemy, "special", x, y, floorId),
|
||||
mon_zone = core.getEnemyValue(enemy, "zone", x, y, floorId),
|
||||
mon_repulse = core.getEnemyValue(enemy, "repulse", x, y, floorId),
|
||||
mon_laser = core.getEnemyValue(enemy, "laser", x, y, floorId),
|
||||
mon_breakArmor = core.getEnemyValue(enemy, "breakArmor", x, y, floorId),
|
||||
mon_counterAttack = core.getEnemyValue(enemy, "counterAttack", x, y, floorId),
|
||||
mon_vampire = core.getEnemyValue(enemy, "vampire", x, y, floorId),
|
||||
mon_hpBuff = core.getEnemyValue(enemy, "hpBuff", x, y, floorId),
|
||||
mon_atkBuff = core.getEnemyValue(enemy, "atkBuff", x, y, floorId),
|
||||
mon_defBuff = core.getEnemyValue(enemy, "defBuff", x, y, floorId),
|
||||
mon_zoneSquare = core.getEnemyValue(enemy, "zoneSquare", x, y, floorId),
|
||||
mon_haloSquare = core.getEnemyValue(enemy, "haloSquare", x, y, floorId),
|
||||
mon_haloRange = core.getEnemyValue(enemy, "haloRange", x, y, floorId),
|
||||
mon_range = core.getEnemyValue(enemy, "range", x, y, floorId),
|
||||
mon_notBomb = core.getEnemyValue(enemy, "notBomb", x, y, floorId),
|
||||
mon_n = core.getEnemyValue(enemy, "n", x, y, floorId),
|
||||
mon_purify = core.getEnemyValue(enemy, "purify", x, y, floorId),
|
||||
mon_add = core.getEnemyValue(enemy, "add", x, y, floorId),
|
||||
mon_haloAdd = core.getEnemyValue(enemy, "haloAdd", x, y, floorId),
|
||||
mon_atkValue = core.getEnemyValue(enemy, "atkValue", x, y, floorId),
|
||||
mon_defValue = core.getEnemyValue(enemy, "defValue", x, y, floorId),
|
||||
mon_damage2 = core.getEnemyValue(enemy, "damage2", x, y, floorId),
|
||||
mon_value = core.getEnemyValue(enemy, "value", x, y, floorId);
|
||||
mon_special = core.getEnemyValue(enemy, "special", x, y, floorId);
|
||||
var mon_money = core.getEnemyValue(enemy, "money", x, y, floorId),
|
||||
mon_exp = core.getEnemyValue(enemy, "exp", x, y, floorId),
|
||||
mon_point = core.getEnemyValue(enemy, "point", x, y, floorId);
|
||||
@ -922,29 +900,8 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
|
||||
exp: Math.floor(mon_exp),
|
||||
point: Math.floor(mon_point),
|
||||
special: mon_special,
|
||||
guards: guards, // 返回支援情况
|
||||
zone: mon_zone,
|
||||
repulse: mon_repulse,
|
||||
laser: mon_laser,
|
||||
breakArmor: mon_breakArmor,
|
||||
counterAttack: mon_counterAttack,
|
||||
vampire: mon_vampire,
|
||||
hpBuff: mon_hpBuff,
|
||||
atkBuff: mon_atkBuff,
|
||||
defBuff: mon_defBuff,
|
||||
zoneSquare: mon_zoneSquare,
|
||||
haloSquare: mon_haloSquare,
|
||||
haloRange: mon_haloRange,
|
||||
range: mon_range,
|
||||
notBomb: mon_notBomb,
|
||||
n: mon_n,
|
||||
purify: mon_purify,
|
||||
add: mon_add,
|
||||
haloAdd: mon_haloAdd,
|
||||
atkValue: mon_atkValue,
|
||||
defValue: mon_defValue,
|
||||
damage2: mon_damage2,
|
||||
value: mon_value
|
||||
guards: guards // 返回支援情况
|
||||
|
||||
};
|
||||
},
|
||||
"getDamageInfo": function (enemy, hero, x, y, floorId) {
|
||||
|
Loading…
Reference in New Issue
Block a user