字典:解析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

@@ -156,7 +156,7 @@ export const dicTrainBase = new Map<number, DicTrainBase>(); // 练兵场
export const dicDonateBase = new Map<number, DicDonateBase>(); // 捐献所
export const dicWishPoolBase = new Map<number, DicWishPoolBase>(); // 许愿池
export const dicStoreBase = new Map<number, DicWishPoolBase>(); // 许愿池
export let maxMemberCnt = 0; // 满配最大人数
export const maxMemberCnt = { max: 0 }; // 满配最大人数
export function loadStructure() {
@@ -169,7 +169,7 @@ export function loadStructure() {
let arrCenter = readFileAndParse(FILENAME.DIC_GUILD_STRUCTURE_CENTER);
arrCenter.forEach(o => {
setStructureConsume(o);
if(o.peopleNum > maxMemberCnt) maxMemberCnt = o.peopleNum;
if(o.peopleNum > maxMemberCnt.max) maxMemberCnt.max = o.peopleNum;
dicCenterBase.set(o.level, _.pick(o, Object.keys(DicCenterKeys)));
});
arrCenter = undefined;