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