SteamWar/BungeeCore
Archiviert
13
2

Fix team ratio scaling
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2023-05-13 16:27:45 +02:00
Ursprung fcd686a9ba
Commit fbcb043d1c

Datei anzeigen

@ -194,11 +194,11 @@ public class FightEndsHandler extends PacketHandler {
} }
private double getBluePlayerFactor(int blueTeam, int redTeam) { private double getBluePlayerFactor(int blueTeam, int redTeam) {
return redTeam / (double) blueTeam; return 2 - calcWinExpectation(blueTeam, redTeam) * 2;
} }
private double getRedPlayerFactor(int blueTeam, int redTeam) { private double getRedPlayerFactor(int blueTeam, int redTeam) {
return blueTeam / (double) redTeam; return 2 - calcWinExpectation(redTeam, blueTeam) * 2;
} }
private double getTimeFactor(int duration) { private double getTimeFactor(int duration) {