[11039] As of Season 6 and later, all teams below 1500 rating will earn points as if they were a 1500 rated team

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
michalpolko 2011-01-18 16:48:28 +03:00 committed by VladimirMangos
parent 3293a4c3f5
commit f2e78cdded
2 changed files with 8 additions and 2 deletions

View file

@ -548,7 +548,13 @@ uint32 ArenaTeam::GetPoints(uint32 MemberRating)
uint32 rating = MemberRating + 150 < m_stats.rating ? MemberRating : m_stats.rating; uint32 rating = MemberRating + 150 < m_stats.rating ? MemberRating : m_stats.rating;
if (rating <= 1500) if (rating <= 1500)
{
// As of Season 6 and later, all teams below 1500 rating will earn points as if they were a 1500 rated team
if (sWorld.getConfig(CONFIG_UINT32_ARENA_SEASON_ID) >= 6)
rating = 1500;
points = (float)rating * 0.22f + 14.0f; points = (float)rating * 0.22f + 14.0f;
}
else else
points = 1511.26f / (1.0f + 1639.28f * exp(-0.00412f * (float)rating)); points = 1511.26f / (1.0f + 1639.28f * exp(-0.00412f * (float)rating));

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "11038" #define REVISION_NR "11039"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__