SteamWar/BungeeCore
Archiviert
13
2

Update FightEndsHandler
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2022-04-01 12:05:41 +02:00
Ursprung cbc1dd6505
Commit bbd2b1950b

Datei anzeigen

@ -84,7 +84,8 @@ public class FightEndsHandler implements SpigotHandler {
for (int player : players) {
int playerElo = UserElo.getEloOrDefault(player, gameMode);
int fights = UserElo.getFightsOfSeason(player, gameMode);
UserElo.setElo(player, gameMode, (int) Math.round(playerElo + K * (result - winTeamExpectation)));
double multiplier = Math.max(1.2 - (fights / 200.0), 0.8);
UserElo.setElo(player, gameMode, (int) Math.round(playerElo + K * (result - winTeamExpectation) * multiplier));
}
}
}