Elo re-calculated
Elo is now being incremented more consistently (and not multiple times)
This commit is contained in:
parent
6a5c8336cf
commit
2d45ab61cc
@ -1778,6 +1778,7 @@ public abstract class Game implements Listener
|
||||
EloTeam teamWinner = new EloTeam();
|
||||
EloTeam teamLoser = new EloTeam();
|
||||
|
||||
//populate teams
|
||||
for (GameTeam team : GetTeamList())
|
||||
{
|
||||
if (WinnerTeam != null && team.equals(WinnerTeam))
|
||||
@ -1793,8 +1794,6 @@ public abstract class Game implements Listener
|
||||
|
||||
//Bukkit.broadcastMessage(player.getName() + "Old Elo: " + eloPlayer.rating);
|
||||
|
||||
eloPlayer.rating += 25;
|
||||
|
||||
//Bukkit.broadcastMessage(player.getName() + "New Elo: " + Manager.getEloManager().getElo(player.getUniqueId(), "Testing" /*GetName()*/));
|
||||
}
|
||||
}
|
||||
@ -1809,8 +1808,6 @@ public abstract class Game implements Listener
|
||||
eloPlayer.rating = Manager.getEloManager().getElo(player.getUniqueId(), "Testing" /*GetName()*/);
|
||||
teamLoser.addPlayer(eloPlayer);
|
||||
|
||||
eloPlayer.rating -= 15;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1818,6 +1815,7 @@ public abstract class Game implements Listener
|
||||
//NOT CURRENTLY TRACKING ELO MULTIPLIER -- get averageElo of teams
|
||||
//int averageElo = getAverageElos(teamWinner, teamLoser);
|
||||
|
||||
//use teams to calculate Elo
|
||||
for (EloPlayer eloPlayer : Manager.getEloManager().getNewRatings(teamWinner, teamLoser, GameResult.Win).getPlayers())
|
||||
{
|
||||
//NOT CURRENTLY TRACKING ELO MULTIPLIER -- calculate Elo Multiplier
|
||||
|
Loading…
Reference in New Issue
Block a user