pvp赛季结算界面
This commit is contained in:
@@ -41,7 +41,7 @@ import { dicPvpTeamLevel } from './dictionary/DicPvpTeamLevel';
|
||||
import { dicPvpRefreshConsume, maxPvpRefreshCnt } from './dictionary/DicPvpRefreshConsume';
|
||||
import { dicGkPvp, dicGkPvps } from './dictionary/DicGkPvp';
|
||||
import { dicHeroRewads } from './dictionary/DicPvpHeroReward';
|
||||
import { dicRankRewads } from './dictionary/DicPvpRankReward';
|
||||
import { dicRankRewads, dicRankMax } from './dictionary/DicPvpRankReward';
|
||||
import { dicPvpBoxs } from './dictionary/DicPvpBox';
|
||||
export const gameData = {
|
||||
blurprtCompose: dicBlueprtCompose,
|
||||
@@ -101,6 +101,7 @@ export const gameData = {
|
||||
pvpHeroRewards: dicHeroRewads,
|
||||
pvpRankRewards: dicRankRewads,
|
||||
pvpBoxs: dicPvpBoxs,
|
||||
pvpRankMax: dicRankMax,
|
||||
};
|
||||
|
||||
// 在此提供一些原先在gamedata中提供的方法,以便更方便获取gameData数据
|
||||
@@ -297,4 +298,8 @@ export function getPvpRankRewards() {
|
||||
|
||||
export function getPvpBoxs() {
|
||||
return gameData.pvpBoxs;
|
||||
}
|
||||
|
||||
export function getResultMaxRank() {
|
||||
return gameData.pvpRankMax;
|
||||
}
|
||||
@@ -14,7 +14,11 @@ const str = readJsonFile(FILENAME.DIC_PVP_RANK_REWARD);
|
||||
let arr = JSON.parse(str);
|
||||
|
||||
export const dicRankRewads = new Array<DicRankRewads>();
|
||||
export var dicRankMax: DicRankRewads;
|
||||
arr.forEach(o => {
|
||||
o.reward = parseGoodStr(o.reward);
|
||||
if (!dicRankMax||o.min > dicRankMax.min) {
|
||||
dicRankMax = o;
|
||||
}
|
||||
dicRankRewads.push(o);
|
||||
});
|
||||
Reference in New Issue
Block a user