From f2e78cddedd5580c22dab9effd4947b2eab463f6 Mon Sep 17 00:00:00 2001 From: michalpolko Date: Tue, 18 Jan 2011 16:48:28 +0300 Subject: [PATCH] [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 --- src/game/ArenaTeam.cpp | 8 +++++++- src/shared/revision_nr.h | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/game/ArenaTeam.cpp b/src/game/ArenaTeam.cpp index 0bd588978..d02409c8c 100644 --- a/src/game/ArenaTeam.cpp +++ b/src/game/ArenaTeam.cpp @@ -547,8 +547,14 @@ uint32 ArenaTeam::GetPoints(uint32 MemberRating) 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; + } else points = 1511.26f / (1.0f + 1639.28f * exp(-0.00412f * (float)rating)); diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 382f47107..a69884374 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11038" + #define REVISION_NR "11039" #endif // __REVISION_NR_H__