diff --git a/gmweb/app.js b/gmweb/app.js index 0a51049..f11cf58 100644 --- a/gmweb/app.js +++ b/gmweb/app.js @@ -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); } diff --git a/gmweb/index.html b/gmweb/index.html index 714044b..caf9c14 100644 --- a/gmweb/index.html +++ b/gmweb/index.html @@ -78,10 +78,10 @@