fix:优化单点特殊属性的手册显示

This commit is contained in:
ShakeFlower 2025-03-25 23:34:20 +08:00
parent dec720e95c
commit f68f46e9d1
2 changed files with 8 additions and 2 deletions

View File

@ -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;
}

View File

@ -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) {