mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[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:
parent
3293a4c3f5
commit
f2e78cdded
2 changed files with 8 additions and 2 deletions
|
|
@ -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));
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue