军团:每周结算修复

This commit is contained in:
luying
2022-05-09 15:45:35 +08:00
parent 1498950478
commit 3ac8df5725
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -503,7 +503,7 @@ export function getTrainBaseByLv(lv: number) {
export function getGuildActiveWeekReward(rank: number) {
let result = gameData.guildActiveWeekReward.find(cur => {
let { rankMax, rankMin } = cur;
return rank >= rankMin && rank <= (rankMax || rankMax == -1);
return rank >= rankMin && (rank <= rankMax || rankMax == -1);
});
let reward = new Array<RewardInter>();
if (result) reward = result.reward;
@@ -19,7 +19,7 @@ export interface DicGuildActiveWeekReward {
export const dicGuildActiveWeekReward = new Array<DicGuildActiveWeekReward>();
export function loadGuildActiveWeekReward() {
dicGuildActiveWeekReward.splice(0, dicGuildActiveWeekReward.length);
let arr = readFileAndParse(FILENAME.DIC_ACTIVE_DAY_REWARD);
let arr = readFileAndParse(FILENAME.DIC_ACTIVE_WEEK_REWARD);
arr.forEach(o => {
o.reward = parseGoodStr(o.Reward)