From f68f46e9d1e5a5c7be2992e4f4eed6d245362b71 Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Tue, 25 Mar 2025 23:34:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BC=98=E5=8C=96=E5=8D=95=E7=82=B9?= =?UTF-8?q?=E7=89=B9=E6=AE=8A=E5=B1=9E=E6=80=A7=E7=9A=84=E6=89=8B=E5=86=8C?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/control.js | 3 ++- libs/ui.js | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/libs/control.js b/libs/control.js index 9fdd6898..e7afe4fc 100644 --- a/libs/control.js +++ b/libs/control.js @@ -2607,7 +2607,8 @@ control.prototype.getStatusLabel = function (name) { } return { name: "名称", lv: "等级", hpmax: "生命上限", hp: "生命", manamax: "魔力上限", mana: "魔力", - atk: "攻击", def: "防御", mdef: "护盾", money: "金币", exp: "经验", point: "加点", steps: "步数" + atk: "攻击", def: "防御", mdef: "护盾", money: "金币", exp: "经验", point: "加点", steps: "步数", + special: "特殊属性", }[name] || name; } diff --git a/libs/ui.js b/libs/ui.js index 2a5d0880..c0e35bc0 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -2442,7 +2442,12 @@ ui.prototype._drawBookDetail_origin = function (enemy, texts) { originEnemy_one = core.utils.parseSpecial(originEnemy_one); } if (!core.utils.deepEqual(enemy_one, originEnemy_one)) { - content.push(core.getStatusLabel(one) + " " + originEnemy_one); + if (!core.utils.deepEqual(enemy_one, originEnemy_one)) { + let statusName = core.getStatusLabel(one), + statusValue = originEnemy_one; + if (originEnemy_one instanceof Array) statusValue = '[' + originEnemy_one + ']'; + content.push(statusName + " " + statusValue); + } } }); if (content.length > 0) {