diff --git a/src/Module.Server/Balancing/ClanGroup.cs b/src/Module.Server/Balancing/ClanGroup.cs index ce21464f05..9e9d139c82 100644 --- a/src/Module.Server/Balancing/ClanGroup.cs +++ b/src/Module.Server/Balancing/ClanGroup.cs @@ -24,7 +24,7 @@ public void Add(WeightedCrpgUser user) public float Weight(float p = MatchBalancer.PowerParameter) { - float clanGroupSizePenalty = CrpgServerConfiguration.ClanGroupSizePenalty; + float clanGroupSizePenalty = CrpgServerConfiguration.TeamBalancerClanGroupSizePenalty; return MathHelper.PowerSumBy(Members, u => u.Weight, p) * (1 + Size * clanGroupSizePenalty); } diff --git a/src/Module.Server/Balancing/MatchBalancer.cs b/src/Module.Server/Balancing/MatchBalancer.cs index 2f8308658a..3e39efa70d 100644 --- a/src/Module.Server/Balancing/MatchBalancer.cs +++ b/src/Module.Server/Balancing/MatchBalancer.cs @@ -94,7 +94,7 @@ public GameMatch BannerBalancingWithEdgeCases(GameMatch gameMatch, bool firstBal // This are failcases in case bannerbalance was not enough Debug.Print("ratio difference is above 10%"); // to rewrite to work with all penalty values - if (CrpgServerConfiguration.ClanGroupSizePenalty == 0f) + if (CrpgServerConfiguration.TeamBalancerClanGroupSizePenalty == 0f) { balancedBannerGameMatch = BalanceTeamOfSimilarSizes(balancedBannerGameMatch, bannerBalance: false, 0.10f); } diff --git a/src/Module.Server/Common/CrpgServerConfiguration.cs b/src/Module.Server/Common/CrpgServerConfiguration.cs index 400ed3b2aa..87bc56f274 100644 --- a/src/Module.Server/Common/CrpgServerConfiguration.cs +++ b/src/Module.Server/Common/CrpgServerConfiguration.cs @@ -25,14 +25,14 @@ public static void Init() public static CrpgRegion Region { get; } public static string Service { get; } public static string Instance { get; } - public static float ClanGroupSizePenalty { get; private set; } = 0f; + public static float TeamBalancerClanGroupSizePenalty { get; private set; } = 0f; public static float ServerExperienceMultiplier { get; private set; } = 1.0f; public static int RewardTick { get; private set; } = 60; public static bool TeamBalanceOnce { get; private set; } public static Tuple? HappyHours { get; private set; } [UsedImplicitly] - [ConsoleCommandMethod("crpg_clangroup_size_penalty", "Apply a rating increase to members of the same clan that are playing in the same team")] + [ConsoleCommandMethod("crpg_team_balancer_clan_group_size_penalty", "Apply a rating increase to members of the same clan that are playing in the same team")] private static void SetClanGroupSizePenalty(string? sizePenaltyStr) { if (sizePenaltyStr == null @@ -43,7 +43,7 @@ private static void SetClanGroupSizePenalty(string? sizePenaltyStr) return; } - ClanGroupSizePenalty = sizePenalty; + TeamBalancerClanGroupSizePenalty = sizePenalty; Debug.Print($"Set ClanGroup Size Penalty to {sizePenalty}"); }