Upd:零号·安比评分、评分权重ID转中文

This commit is contained in:
UCPr 2025-03-14 18:20:37 +08:00
parent a860c9c176
commit de597aba8a
3 changed files with 412 additions and 370 deletions

View file

@ -1,7 +1,22 @@
import { getMapData } from '../utils/file.js';
import { charNameToID } from './convert/char.js';
import { nameToId } from './convert/property.js';
const scoreData = getMapData('EquipScore');
const baseValueData = getMapData('EquipBaseValue');
const equipScore = getMapData('EquipScore');
const scoreData = {};
for (const charName in equipScore) {
const charID = charNameToID(charName);
if (!charID)
continue;
scoreData[charID] = {};
for (const propName in equipScore[charName]) {
const propID = nameToId(propName);
if (!propID)
continue;
scoreData[charID][propID] = equipScore[charName][propName];
};
};
/**
* 是否有分数数据