mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 21:27:47 +00:00
评分权重兼容原ID格式,可混用
This commit is contained in:
parent
de597aba8a
commit
077e0949a5
1 changed files with 5 additions and 0 deletions
|
|
@ -6,6 +6,11 @@ const baseValueData = getMapData('EquipBaseValue');
|
||||||
const equipScore = getMapData('EquipScore');
|
const equipScore = getMapData('EquipScore');
|
||||||
const scoreData = {};
|
const scoreData = {};
|
||||||
for (const charName in equipScore) {
|
for (const charName in equipScore) {
|
||||||
|
// 兼容原ID格式
|
||||||
|
if (+charName) {
|
||||||
|
scoreData[charName] = equipScore[charName];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const charID = charNameToID(charName);
|
const charID = charNameToID(charName);
|
||||||
if (!charID)
|
if (!charID)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue