Archiviert
1
0

Merge remote-tracking branch 'origin/ResourceBundles2.0' into ResourceBundles2.0

Dieser Commit ist enthalten in:
yoyosource 2022-03-15 19:05:20 +01:00
Commit 9a1f067dcd

Datei anzeigen

@ -74,7 +74,7 @@ public class FightEndsHandler implements SpigotHandler {
}
private void calculateEloOfTeam(int schemId, int eloOwn, int eloEnemy, double result, List<Integer> players, String gameMode) {
double winExpectation = 1 / (1 + Math.pow(10, (eloOwn - eloEnemy) / 600f));
double winExpectation = 1 / (1 + Math.pow(10, (eloEnemy - eloOwn) / 600f));
SchemElo.setElo(schemId, (int) Math.round(eloOwn + K * (result - winExpectation)));
for (int player : players) {
int playerElo = UserElo.getEloOrDefault(player, gameMode);