From 077e0949a5b5083dcb783028b0dd2cbb3cd28e1d Mon Sep 17 00:00:00 2001 From: UCPr <2032385471@qq.com> Date: Fri, 14 Mar 2025 18:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E5=88=86=E6=9D=83=E9=87=8D=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=E5=8E=9FID=E6=A0=BC=E5=BC=8F=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E6=B7=B7=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/score.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/score.js b/lib/score.js index 4f97be3..097e6dc 100644 --- a/lib/score.js +++ b/lib/score.js @@ -6,6 +6,11 @@ const baseValueData = getMapData('EquipBaseValue'); const equipScore = getMapData('EquipScore'); const scoreData = {}; for (const charName in equipScore) { + // 兼容原ID格式 + if (+charName) { + scoreData[charName] = equipScore[charName]; + continue; + } const charID = charNameToID(charName); if (!charID) continue;