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