Archiviert
1
0

Hotfix EloPlayer calculation

Dieser Commit ist enthalten in:
yoyosource 2023-05-20 10:46:28 +02:00
Ursprung e43a724550
Commit 8ed0847bcc

Datei anzeigen

@ -118,7 +118,7 @@ public class EloPlayerHandler extends PacketHandler {
double redWinFactor = (fightEndsPacket.getWin() == 2 ? 1 : 0.7); double redWinFactor = (fightEndsPacket.getWin() == 2 ? 1 : 0.7);
// Calculate division factor // Calculate division factor
double divisionFactor = 1D / Math.min(blueTeamSize, redTeamSize); double divisionFactor = 1D / Math.max(blueTeamSize, redTeamSize);
// Calculate the elo gain for each player // Calculate the elo gain for each player
int blueEloGain = (int) Math.round(MEDIAN_ELO_GAIN * bluePlayerFactor * timeFactor * blueEloFactor * rematchFactor * blueWinFactor * divisionFactor); int blueEloGain = (int) Math.round(MEDIAN_ELO_GAIN * bluePlayerFactor * timeFactor * blueEloFactor * rematchFactor * blueWinFactor * divisionFactor);