From f2d43c159c8b88622c6d3a698a751c059ba68378 Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Mon, 23 Feb 2026 22:23:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=8F=AF=E4=BB=A5=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=A0=87=E8=AE=B0=E4=B8=8D=E5=8F=AF=E7=82=B8=E5=B1=9E?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/control.js | 10 +++++++--- project/plugins.js | 8 +++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/libs/control.js b/libs/control.js index 31680323..3ca09a2f 100644 --- a/libs/control.js +++ b/libs/control.js @@ -1394,6 +1394,10 @@ control.prototype.getEnemyValueString = function(name, blockId, x, y, floorId) { const value = core.enemys.getEnemyValue(blockId, name, x, y, floorId); const valueString = core.utils.formatBigNumber(value, 5); return { text: valueString, color: colorMap[name] }; + case "notBomb": + const notBomb = core.enemys.getEnemyValue(blockId, name, x, y, floorId); + const notBombStr = notBomb ? "b" : ""; + return { text: notBombStr, color: colorMap[name] || "white" }; case "criticalDamage": let criticalDamage = 0; const criticals = core.enemys.nextCriticals(blockId, 1, x, y, floorId); @@ -1451,9 +1455,9 @@ control.prototype._updateDamage_damage = function (floorId, onMap) { core.control.pushDamageData(data.leftdown[1], 32 * x + 1, 32 * (y + 1) - 1, blockId, x, y, floorId); core.control.pushDamageData(data.leftdown[2], 32 * x + 1, 32 * (y + 1) - 11, blockId, x, y, floorId); core.control.pushDamageData(data.leftdown[3], 32 * x + 1, 32 * (y + 1) - 21, blockId, x, y, floorId); - core.control.pushDamageData(data.rightup[1], 32 * x + 16, 32 * (y + 1) - 21, blockId, x, y, floorId); - core.control.pushDamageData(data.rightup[2], 32 * x + 16, 32 * (y + 1) - 11, blockId, x, y, floorId); - core.control.pushDamageData(data.rightup[3], 32 * x + 16, 32 * (y + 1) - 1, blockId, x, y, floorId); + core.control.pushDamageData(data.rightup[1], 32 * x + 22, 32 * (y + 1) - 21, blockId, x, y, floorId); + core.control.pushDamageData(data.rightup[2], 32 * x + 22, 32 * (y + 1) - 11, blockId, x, y, floorId); + core.control.pushDamageData(data.rightup[3], 32 * x + 22, 32 * (y + 1) - 1, blockId, x, y, floorId); } }); } diff --git a/project/plugins.js b/project/plugins.js index 1b4bfaf5..7c01f066 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -5733,6 +5733,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = 'atk': core.control.getStatusLabel('atk'), 'def': core.control.getStatusLabel('def'), 'money': core.control.getStatusLabel('money'), 'exp': core.control.getStatusLabel('exp'), 'criticalDamage': '临界减伤', 'defDamage': '1防减伤', 'special': '特殊属性', + 'notBomb': '不可炸', } class DisplayInfoBtn extends RoundBtn { @@ -5923,13 +5924,14 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = core.control.updateStatusBar(); // 手动刷新一下地图显伤 } } - for (let i = 0; i < 5; i++) { + const ROW_INFONAME = 6; + for (let i = 0; i < ROW_INFONAME; i++) { const tempBtn = new RoundBtn(200, 100 + i * 25, 80, 20, infoNameMap[infoNameList[i]], { fillStyle: 'Azure' }); tempBtn.disable = true; advanceDisplayMenu.registerBtn('temp' + i, tempBtn, setNewInfo(infoNameList[i])); } - for (let i = 5; i < l; i++) { - const tempBtn = new RoundBtn(300, 100 + (i - 5) * 25, 80, 20, infoNameMap[infoNameList[i]], { fillStyle: 'Azure' }); + for (let i = ROW_INFONAME; i < l; i++) { + const tempBtn = new RoundBtn(300, 100 + (i - ROW_INFONAME) * 25, 80, 20, infoNameMap[infoNameList[i]], { fillStyle: 'Azure' }); tempBtn.disable = true; advanceDisplayMenu.registerBtn('temp' + i, tempBtn, setNewInfo(infoNameList[i])); }