Fix arena point calculation. If the configured arena season is >= 5, teams below 1500 rating should get a fixed amount of points, equal to the amount of points a person with 1500 rating would get.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-03-20 17:51:23 +01:00
parent d21f0c3ce8
commit b651b592ef
+5
View File
@@ -519,7 +519,12 @@ uint32 ArenaTeam::GetPoints(uint32 MemberRating)
uint32 rating = MemberRating + 150 < m_stats.rating ? MemberRating : m_stats.rating;
if (rating<=1500)
{
if (sWorld.getConfig(CONFIG_ARENA_SEASON_ID) < 5)
points = (float)rating * 0.22f + 14.0f;
else
points = 344;
}
else
points = 1511.26f / (1.0f + 1639.28f * exp(-0.00412f * (float)rating));