feat(Core/Config): Arena points - Games required (#3811)

This commit is contained in:
aradep
2020-12-12 02:36:00 -04:00
committed by GitHub
parent 48f418e7e2
commit 7d16417d16
4 changed files with 10 additions and 1 deletions

View File

@@ -865,7 +865,7 @@ void ArenaTeam::UpdateArenaPointsHelper(std::map<uint32, uint32>& playerPoints)
// Called after a match has ended and the stats are already modified
// Helper function for arena point distribution (this way, when distributing, no actual calculation is required, just a few comparisons)
// 10 played games per week is a minimum
if (Stats.WeekGames < 10)
if (Stats.WeekGames < sWorld->getIntConfig(CONFIG_ARENA_GAMES_REQUIRED))
return;
// To get points, a player has to participate in at least 30% of the matches