评分权重兼容原ID格式,可混用

This commit is contained in:
UCPr 2025-03-14 18:29:53 +08:00
parent de597aba8a
commit 077e0949a5

View file

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