SteamWar/BungeeCore
Archiviert
13
2

Merge pull request 'Fix EloSchemHandler' (#489) from EloFixForPublicVsPublicAndRank into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Reviewed-on: #489
Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Lixfel 2023-10-28 20:28:52 +02:00
Commit 04a2a31d80

Datei anzeigen

@ -58,8 +58,8 @@ public class EloSchemHandler extends PacketHandler {
int blueSchemElo = SchemElo.getCurrentElo(fightEndsPacket.getBlueSchem()); int blueSchemElo = SchemElo.getCurrentElo(fightEndsPacket.getBlueSchem());
int redSchemElo = SchemElo.getCurrentElo(fightEndsPacket.getRedSchem()); int redSchemElo = SchemElo.getCurrentElo(fightEndsPacket.getRedSchem());
calcSchemElo(fightEndsPacket.getBlueSchem(), blueSchemElo, fightEndsPacket.getRedSchem(), blueResult); calcSchemElo(redSchemElo, blueSchemElo, fightEndsPacket.getRedSchem(), blueResult);
calcSchemElo(fightEndsPacket.getRedSchem(), redSchemElo, fightEndsPacket.getBlueSchem(), 1 - blueResult); calcSchemElo(blueSchemElo, redSchemElo, fightEndsPacket.getBlueSchem(), 1 - blueResult);
} }
private void calcSchemElo(int eloSchemOwn, int eloSchemEnemy, int schemId, double result) { private void calcSchemElo(int eloSchemOwn, int eloSchemEnemy, int schemId, double result) {