GM 页:增幅属性按 PVF 实际映射标注(物防/魔防/物攻/魔攻)

This commit is contained in:
hanfuit committed 2026-11-05 12:22:08 +08:00
1 parent 18e98ca7c9
commit c4ffa57bf2
2 files changed
+8 -5

No files matched your search

+4 -1
View File
@@ -296,10 +296,13 @@
return out;
}
/* 增幅属性编号取自 etc/amplifyitem.etc 的 [option mapping table]。 */
var AMP_LABEL = { 1: '物防', 2: '魔防', 3: '物攻', 4: '魔攻' };
function optText(o) {
var parts = [];
if (o.amplify_type > 0) {
parts.push('增幅' + o.amplify_type + ' +' + o.amplify_level);
parts.push('增幅' + (AMP_LABEL[o.amplify_type] || o.amplify_type) + ' +' + o.amplify_level);
} else if (o.reinforce > 0) {
parts.push('强化 +' + o.reinforce);
}