Adding some fixes

This commit is contained in:
Dustin Hendrickson
2025-10-18 14:08:01 -05:00
parent a5eb4c6855
commit 8669a4dbcb
3 changed files with 13 additions and 6 deletions

View File

@@ -664,6 +664,10 @@ static void AdjustBotToRange(Player* bot, int targetRangeIndex, const LevelRange
{
lowerBound = 55;
}
if (lowerBound > upperBound)
{
return;
}
newLevel = urand(lowerBound, upperBound);
}
else
@@ -1361,6 +1365,9 @@ public:
applyWeights(g_AllianceLevelRanges, allianceWeights);
applyWeights(g_HordeLevelRanges, hordeWeights);
// Ensure brackets respect global min/max levels and percentages sum to 100
ClampAndBalanceBrackets();
// Debug output for new bracket percentages after normalization
if (g_BotDistFullDebugMode || g_BotDistLiteDebugMode)
{