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