Readjusting the algo for distribution and player contribution

This commit is contained in:
Dustin Hendrickson
2025-02-20 16:34:34 -08:00
parent e8d1ad69c3
commit 05549da0c1

View File

@@ -328,9 +328,9 @@ public:
float hordeWeights[NUM_RANGES] = {0}; float hordeWeights[NUM_RANGES] = {0};
for (int i = 0; i < NUM_RANGES; ++i) for (int i = 0; i < NUM_RANGES; ++i)
{ {
allianceWeights[i] = baseline + g_RealPlayerWeight * log(1 + allianceRealCounts[i]); allianceWeights[i] = baseline + g_RealPlayerWeight * (totalAllianceReal > 0 ? (1.0f / totalAllianceReal) : 1.0f) * log(1 + allianceRealCounts[i]);
hordeWeights[i] = baseline + g_RealPlayerWeight * log(1 + hordeRealCounts[i]); hordeWeights[i] = baseline + g_RealPlayerWeight * (totalHordeReal > 0 ? (1.0f / totalHordeReal) : 1.0f) * log(1 + hordeRealCounts[i]);
allianceTotalWeight += allianceWeights[i]; allianceTotalWeight += allianceWeights[i];
hordeTotalWeight += hordeWeights[i]; hordeTotalWeight += hordeWeights[i];