Files
ZYZ/shared/pubUtils/dictionary/DicExpeditionPoint.ts
2020-12-15 15:22:28 +08:00

21 lines
574 B
TypeScript

// 远征点数奖励表
import { parseReward, readJsonFile } from '../util';
import { FILENAME } from '../../consts/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 = parseReward(o.reward);
dicExpeditionPoint.set(o.point, o);
});