🐞 fix(gvg): 修复零散小问题

This commit is contained in:
luying
2023-03-01 19:43:35 +08:00
parent bea3361cbe
commit 0f28628a64
8 changed files with 31 additions and 16 deletions
@@ -170,12 +170,12 @@ class GVGBattleData {
return teams;
}
public findSettledPointMapByLeague() {
public findSettledPointMapByLeague(cityId: number) {
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(pointId > 0 && team && team.leagueCode && team.cityId == cityId) {
if(!pointByLeague.has(team.leagueCode)) pointByLeague.set(team.leagueCode, []);
pointByLeague.get(team.leagueCode).push(team.pointId);
};