字典:解析export
This commit is contained in:
@@ -12,14 +12,14 @@ export interface DicRankRewads {
|
||||
|
||||
|
||||
export const dicRankRewads = new Array<DicRankRewads>();
|
||||
export let dicRankMax: DicRankRewads;
|
||||
export const dicRankMax: { max: DicRankRewads } = { max: undefined };
|
||||
export function loadPvpRankReward() {
|
||||
let arr = readFileAndParse(FILENAME.DIC_PVP_RANK_REWARD);
|
||||
|
||||
arr.forEach(o => {
|
||||
o.reward = parseGoodStr(o.reward);
|
||||
if (!dicRankMax||o.min > dicRankMax.min) {
|
||||
dicRankMax = o;
|
||||
if (!dicRankMax.max||o.min > dicRankMax.max.min) {
|
||||
dicRankMax.max = o;
|
||||
}
|
||||
dicRankRewads.push(o);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user