From c4ffa57bf2be62d366a80eeff34d82fc06f37884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=B5=E5=AE=9D=E4=BB=99=E5=B0=8A?= Date: Thu, 5 Nov 2026 12:22:08 +0800 Subject: [PATCH] =?UTF-8?q?GM=20=E9=A1=B5=EF=BC=9A=E5=A2=9E=E5=B9=85?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=E6=8C=89=20PVF=20=E5=AE=9E=E9=99=85=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E6=A0=87=E6=B3=A8=EF=BC=88=E7=89=A9=E9=98=B2/?= =?UTF-8?q?=E9=AD=94=E9=98=B2/=E7=89=A9=E6=94=BB/=E9=AD=94=E6=94=BB?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gmweb/app.js | 5 ++++- gmweb/index.html | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) 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 @@