🐞 fix(gvg): 激战期城池排行榜添加积分增速

This commit is contained in:
luying
2023-02-23 13:25:54 +08:00
parent 5ce06be73d
commit 43f85b92d0
2 changed files with 24 additions and 13 deletions
@@ -154,6 +154,20 @@ class GVGBattleData {
return teams;
}
public findSettledPointMapByLeague() {
let pointByLeague = new Map<string, number[]>();
for(let [_roleId, pointIds] of this.rolePoints) {
for(let [pointId, teamCode] of pointIds) {
let team = this.teams.get(teamCode);
if(pointId > 0 && team && team.leagueCode) {
if(!pointByLeague.has(team.leagueCode)) pointByLeague.set(team.leagueCode, []);
pointByLeague.get(team.leagueCode).push(team.pointId);
};
}
}
return pointByLeague;
}
public findAreas() {
return this.areaToTeams.keys();
}