Files
ZYZ/shared/pubUtils/dictionary/DicExpeditionPoint.ts
mamengke01 9a377e94d8 战力
2020-12-22 17:25:55 +08:00

21 lines
569 B
TypeScript

// 远征点数奖励表
import { parseGoodStr, readJsonFile } from '../util';
import { FILENAME } from '../../consts';
import { RewardInter } from '../interface';
export interface DicExpeditionPoint {
// 远征点数
readonly point: number;
// 奖励
readonly reward: Array<RewardInter>;
}
const str = readJsonFile(FILENAME.DIC_EXPEDITION_POINT);
let arr = JSON.parse(str);
export const dicExpeditionPoint = new Map<number, DicExpeditionPoint>();
arr.forEach(o => {
o.reward = parseGoodStr(o.reward);
dicExpeditionPoint.set(o.point, o);
});