From de4db364551388384a71c5f6fa4fa84825fc5fe4 Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Wed, 2 Apr 2025 20:25:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4=E7=9C=9F=E5=AE=9E=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/functions.js | 53 +++++--------------------------------------- 1 file changed, 5 insertions(+), 48 deletions(-) diff --git a/project/functions.js b/project/functions.js index 1b19e5a..d341984 100644 --- a/project/functions.js +++ b/project/functions.js @@ -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) {