字典:解析export

This commit is contained in:
luying
2021-05-29 17:57:38 +08:00
parent b075dcfcd4
commit 6f61993f55
10 changed files with 17 additions and 16 deletions

View File

@@ -13,14 +13,14 @@ export interface DicPvpRefreshConsume {
}
export const dicPvpRefreshConsume = new Map<number, RewardInter[]>();
export let maxPvpRefreshCnt = 0;
export const maxPvpRefreshCnt = { max: 0 };
export function loadPvpRefreshConsume() {
let arr = readFileAndParse(FILENAME.DIC_PVP_REFRESH_CONSUME);
arr.forEach(o => {
o.consume = parseGoodStr(o.consume);
if(o.count > maxPvpRefreshCnt) maxPvpRefreshCnt = o.count;
if(o.count > maxPvpRefreshCnt.max) maxPvpRefreshCnt.max = o.count;
dicPvpRefreshConsume.set(o.count, o.consume);
});