更新json和部分dictionary定义

This commit is contained in:
luying
2021-01-06 17:16:15 +08:00
parent 44ebf774b9
commit 514a8de340
25 changed files with 4240 additions and 28 deletions

View File

@@ -0,0 +1,25 @@
// pvp三个对手
import { readJsonFile, parseGoodStr } from '../util'
import { FILENAME } from '../../consts'
import { RewardInter } from '../interface';
export interface DicPvpRefreshConsume {
// id
readonly id: number;
// 次数
readonly count: number;
// 消耗
readonly consume: RewardInter[]
}
const str = readJsonFile(FILENAME.DIC_PVP_TEAM_LEVEL);
let arr = JSON.parse(str);
export const dicPvpRefreshConsume = new Map<number, DicPvpRefreshConsume>();
arr.forEach(o => {
o.consume = parseGoodStr(o.consume);
dicPvpRefreshConsume.set(o.count, o);
});
arr = undefined;