From fbcb043d1c11fdbb0ba92c71801c773f14d1dd77 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 13 May 2023 16:27:45 +0200 Subject: [PATCH] Fix team ratio scaling --- .../bungeecore/network/handlers/FightEndsHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/bungeecore/network/handlers/FightEndsHandler.java b/src/de/steamwar/bungeecore/network/handlers/FightEndsHandler.java index 07e9fbe..959a66a 100644 --- a/src/de/steamwar/bungeecore/network/handlers/FightEndsHandler.java +++ b/src/de/steamwar/bungeecore/network/handlers/FightEndsHandler.java @@ -194,11 +194,11 @@ public class FightEndsHandler extends PacketHandler { } private double getBluePlayerFactor(int blueTeam, int redTeam) { - return redTeam / (double) blueTeam; + return 2 - calcWinExpectation(blueTeam, redTeam) * 2; } private double getRedPlayerFactor(int blueTeam, int redTeam) { - return blueTeam / (double) redTeam; + return 2 - calcWinExpectation(redTeam, blueTeam) * 2; } private double getTimeFactor(int duration) {