Merge branch 'master' into ResourceBundles2.0
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Commit
fe2097b68f
@ -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) {
|
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)));
|
SchemElo.setElo(schemId, (int) Math.round(eloOwn + K * (result - winExpectation)));
|
||||||
for (int player : players) {
|
for (int player : players) {
|
||||||
int playerElo = UserElo.getEloOrDefault(player, gameMode);
|
int playerElo = UserElo.getEloOrDefault(player, gameMode);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren