Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
fix ranking calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
rutmanz committed Dec 17, 2022
1 parent b422536 commit 7de13d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/classes/team.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ export default class Team implements TeamData {
this._matches.forEach((match) => {
switch (match.getMatchResult(this.id)) {
case MatchResult.WIN:
rankingPoints += match.redScore + match.blueScore
rankingPoints += match.redScore + match.blueScore;
break;
case MatchResult.LOSS:
rankingPoints += match.getTeamScore(this.id)
break;
case MatchResult.DRAW:
rankingPoints += match.getTeamScore(this.id)
break;
}
})
return rankingPoints
Expand Down

0 comments on commit 7de13d8

Please sign in to comment.