feat:可以自定义标记不可炸属性

This commit is contained in:
ShakeFlower 2026-02-23 22:23:10 +08:00
parent b788473533
commit f2d43c159c
2 changed files with 12 additions and 6 deletions

View File

@ -1394,6 +1394,10 @@ control.prototype.getEnemyValueString = function(name, blockId, x, y, floorId) {
const value = core.enemys.getEnemyValue(blockId, name, x, y, floorId); const value = core.enemys.getEnemyValue(blockId, name, x, y, floorId);
const valueString = core.utils.formatBigNumber(value, 5); const valueString = core.utils.formatBigNumber(value, 5);
return { text: valueString, color: colorMap[name] }; 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": case "criticalDamage":
let criticalDamage = 0; let criticalDamage = 0;
const criticals = core.enemys.nextCriticals(blockId, 1, x, y, floorId); 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[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[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.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[1], 32 * x + 22, 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[2], 32 * x + 22, 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[3], 32 * x + 22, 32 * (y + 1) - 1, blockId, x, y, floorId);
} }
}); });
} }

View File

@ -5733,6 +5733,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
'atk': core.control.getStatusLabel('atk'), 'def': core.control.getStatusLabel('def'), 'atk': core.control.getStatusLabel('atk'), 'def': core.control.getStatusLabel('def'),
'money': core.control.getStatusLabel('money'), 'exp': core.control.getStatusLabel('exp'), 'money': core.control.getStatusLabel('money'), 'exp': core.control.getStatusLabel('exp'),
'criticalDamage': '临界减伤', 'defDamage': '1防减伤', 'special': '特殊属性', 'criticalDamage': '临界减伤', 'defDamage': '1防减伤', 'special': '特殊属性',
'notBomb': '不可炸',
} }
class DisplayInfoBtn extends RoundBtn { class DisplayInfoBtn extends RoundBtn {
@ -5923,13 +5924,14 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
core.control.updateStatusBar(); // 手动刷新一下地图显伤 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' }); const tempBtn = new RoundBtn(200, 100 + i * 25, 80, 20, infoNameMap[infoNameList[i]], { fillStyle: 'Azure' });
tempBtn.disable = true; tempBtn.disable = true;
advanceDisplayMenu.registerBtn('temp' + i, tempBtn, setNewInfo(infoNameList[i])); advanceDisplayMenu.registerBtn('temp' + i, tempBtn, setNewInfo(infoNameList[i]));
} }
for (let i = 5; i < l; i++) { for (let i = ROW_INFONAME; i < l; i++) {
const tempBtn = new RoundBtn(300, 100 + (i - 5) * 25, 80, 20, infoNameMap[infoNameList[i]], { fillStyle: 'Azure' }); const tempBtn = new RoundBtn(300, 100 + (i - ROW_INFONAME) * 25, 80, 20, infoNameMap[infoNameList[i]], { fillStyle: 'Azure' });
tempBtn.disable = true; tempBtn.disable = true;
advanceDisplayMenu.registerBtn('temp' + i, tempBtn, setNewInfo(infoNameList[i])); advanceDisplayMenu.registerBtn('temp' + i, tempBtn, setNewInfo(infoNameList[i]));
} }