🐞 fix(军团): 退出游戏cd时间变为和服务器开服时间相关
This commit is contained in:
@@ -344,7 +344,8 @@ export const gameData = {
|
||||
gvgTeamDurability: new Map<number, number>(),
|
||||
gvgPointByAreaId: dicGVGPointsByAreaId,
|
||||
gvgReviveGold: new Map<number|'max', number>(),
|
||||
dicPushMessage: dicPushMessage
|
||||
dicPushMessage: dicPushMessage,
|
||||
guildQuitCd: new Array<{day: number, minute: number}>(),
|
||||
};
|
||||
|
||||
// 在此提供一些原先在gamedata中提供的方法,以便更方便获取gameData数据
|
||||
@@ -1270,6 +1271,13 @@ export function getReviveGold(cnt: number) {
|
||||
return gameData.gvgReviveGold.get('max')||0;
|
||||
}
|
||||
|
||||
function parseQuitGuildTime() {
|
||||
let arr = decodeArrayListStr(param.ARMY.ARMY_JOIN_COOLDOWNTIME);
|
||||
for(let [day, minute] of arr) {
|
||||
gameData.guildQuitCd.push({ day: parseInt(day), minute: parseInt(minute) });
|
||||
}
|
||||
}
|
||||
|
||||
// 初始加载
|
||||
function initDatas() {
|
||||
parseDicParam();
|
||||
@@ -1296,6 +1304,7 @@ function parseDicParam() {
|
||||
parseGVGDurabilityMinus();
|
||||
parseGVGTeamDurability();
|
||||
parseGVGReviveCoin();
|
||||
parseQuitGuildTime();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user