添加刷新消耗
This commit is contained in:
@@ -38,7 +38,7 @@ import { dicHeroScroll, preHeroScroll } from './dictionary/DicHeroScroll';
|
||||
import { ABI_TYPE_TO_STAGE } from "../consts";
|
||||
import { dicPvpOpponent } from './dictionary/DicPvpOpponent';
|
||||
import { dicPvpTeamLevel } from './dictionary/DicPvpTeamLevel';
|
||||
import { dicPvpRefreshConsume } from './dictionary/DicPvpRefreshConsume';
|
||||
import { dicPvpRefreshConsume, maxPvpRefreshCnt } from './dictionary/DicPvpRefreshConsume';
|
||||
import { dicGkPvp, dicGkPvps } from './dictionary/DicGkPvp';
|
||||
import { dicHeroRewads } from './dictionary/DicPvpHeroReward';
|
||||
import { dicRankRewads } from './dictionary/DicPvpRankReward';
|
||||
@@ -95,6 +95,7 @@ export const gameData = {
|
||||
pvpTeamLevel: dicPvpTeamLevel,
|
||||
pvpWar: dicWarPvp,
|
||||
pvpRefreshConsume: dicPvpRefreshConsume,
|
||||
maxPvpRefreshCnt: maxPvpRefreshCnt,
|
||||
pvpGk: dicGkPvp,
|
||||
pvpGks: dicGkPvps,
|
||||
pvpHeroRewards: dicHeroRewads,
|
||||
|
||||
@@ -11,7 +11,7 @@ export interface DicHeroRewads {
|
||||
|
||||
}
|
||||
|
||||
const str = readJsonFile(FILENAME.DIC_PVP_RANK_REWARD);
|
||||
const str = readJsonFile(FILENAME.DIC_PVP_HERO_REWARD);
|
||||
let arr = JSON.parse(str);
|
||||
|
||||
export const dicHeroRewads = new Array<DicHeroRewads>();
|
||||
|
||||
@@ -12,14 +12,16 @@ export interface DicPvpRefreshConsume {
|
||||
readonly consume: RewardInter[]
|
||||
}
|
||||
|
||||
const str = readJsonFile(FILENAME.DIC_PVP_TEAM_LEVEL);
|
||||
const str = readJsonFile(FILENAME.DIC_PVP_REFRESH_CONSUME);
|
||||
let arr = JSON.parse(str);
|
||||
|
||||
export const dicPvpRefreshConsume = new Map<number, DicPvpRefreshConsume>();
|
||||
export const dicPvpRefreshConsume = new Map<number, RewardInter[]>();
|
||||
export let maxPvpRefreshCnt = 0;
|
||||
|
||||
arr.forEach(o => {
|
||||
o.consume = parseGoodStr(o.consume);
|
||||
dicPvpRefreshConsume.set(o.count, o);
|
||||
if(o.count > maxPvpRefreshCnt) maxPvpRefreshCnt = o.count;
|
||||
dicPvpRefreshConsume.set(o.count, o.consume);
|
||||
});
|
||||
|
||||
arr = undefined;
|
||||
Reference in New Issue
Block a user