✨ feat(gvg): 激战期内存以及玩家移动、挑战操作
This commit is contained in:
@@ -57,7 +57,7 @@ import { dicCityActivityReward, loadCityActivityReward } from "./dictionary/DicC
|
||||
import { dicRaceActivity, dicRaceTypes, loadRaceActivity } from './dictionary/DicRaceActivity';
|
||||
import { GUILDACTIVITY, RECRUIT } from "./dicParam";
|
||||
import * as param from "./dicParam";
|
||||
import { decodeIdCntArrayStr, parseGoodStr, decodeArrayListStr, getRandEelm, readTsFile, getRandSingleEelm } from "./util";
|
||||
import { decodeIdCntArrayStr, parseGoodStr, decodeArrayListStr, getRandEelm, readTsFile, getRandSingleEelm, parseNumberList } from "./util";
|
||||
import { RACE_EVENT_TYPE } from "../consts";
|
||||
import { dicShopByType, dicShopItem, loadShop } from "./dictionary/DicShop";
|
||||
import { dicShopType, loadShopType } from "./dictionary/DicShopType";
|
||||
@@ -334,6 +334,7 @@ export const gameData = {
|
||||
gvgVestigeName: dicGVGVestigeName,
|
||||
gvgAreaPoint: dicGVGAreaPoint,
|
||||
gvgBattleRankReward: dicGVGBattleRankReward,
|
||||
gvgBattleDurabilityMinus: { win: 0, fail: 0 },
|
||||
};
|
||||
|
||||
// 在此提供一些原先在gamedata中提供的方法,以便更方便获取gameData数据
|
||||
@@ -1213,6 +1214,12 @@ export function getGVGBattleRankReward(type: number, rank: number) {
|
||||
return lastRank
|
||||
}
|
||||
|
||||
function parseGVGDurabilityMinus() {
|
||||
const range = parseNumberList(param.GVG.GVG_DEFAULT_DURABILITY_MINUS);
|
||||
gameData.gvgBattleDurabilityMinus.win = range[0];
|
||||
gameData.gvgBattleDurabilityMinus.fail = range[0];
|
||||
}
|
||||
|
||||
// 初始加载
|
||||
function initDatas() {
|
||||
parseDicParam();
|
||||
@@ -1236,6 +1243,7 @@ function parseDicParam() {
|
||||
parseGVGActive();
|
||||
parseGVGFieldAdd();
|
||||
parseGVGVestigeCnt();
|
||||
parseGVGDurabilityMinus();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user