SteamWar/BungeeCore
Archiviert
13
2

Fix SchemElo SchemID
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-05-23 19:52:18 +02:00
Ursprung feeca8f523
Commit eacf7fd6cf

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, redSchemElo, blueResult); calcSchemElo(fightEndsPacket.getBlueSchem(), blueSchemElo, fightEndsPacket.getRedSchem(), blueResult);
calcSchemElo(fightEndsPacket.getRedSchem(), redSchemElo, blueSchemElo, 1 - blueResult); calcSchemElo(fightEndsPacket.getRedSchem(), 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) {