geforkt von SteamWar/BungeeCore
Hotfix EloPlayer calculation
Dieser Commit ist enthalten in:
Ursprung
e43a724550
Commit
8ed0847bcc
@ -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);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren