diff options
author | Liberate <tbaart@gmail.com> | 2011-07-30 22:46:45 +0200 |
---|---|---|
committer | Liberate <tbaart@gmail.com> | 2011-07-30 22:46:45 +0200 |
commit | 6cfb87639cbceee3a182a0431d8b789193228802 (patch) | |
tree | b9fecf8262a893f86e2dc0f39d0bf1184c5ef6c9 /src/server/game/Battlegrounds/ArenaTeam.h | |
parent | b2d37062a0a56de43fec8b9dcd608d5b8cd4f570 (diff) |
Core/Arena: A more accurate implementation of rating gain/loss. This fixes the strange behaviour personal rating could have, as well as implements the bigger rating scale added in patch 3.1.
Fixes #230
Diffstat (limited to 'src/server/game/Battlegrounds/ArenaTeam.h')
-rwxr-xr-x | src/server/game/Battlegrounds/ArenaTeam.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/game/Battlegrounds/ArenaTeam.h b/src/server/game/Battlegrounds/ArenaTeam.h index 9b76715a340..ce4efecc228 100755 --- a/src/server/game/Battlegrounds/ArenaTeam.h +++ b/src/server/game/Battlegrounds/ArenaTeam.h @@ -164,14 +164,14 @@ class ArenaTeam void Inspect(WorldSession* session, uint64 guid); uint32 GetPoints(uint32 MemberRating); - int32 GetRatingMod(uint32 ownRating, uint32 opponentRating, bool won, bool calculating_mmr = false); - int32 GetPersonalRatingMod(int32 base_rating, uint32 ownRating, uint32 opponentRating); + int32 GetMatchmakerRatingMod(uint32 ownRating, uint32 opponentRating, bool won); + int32 GetRatingMod(uint32 ownRating, uint32 opponentRating, bool won); float GetChanceAgainst(uint32 ownRating, uint32 opponentRating); - int32 WonAgainst(uint32 againstRating); - void MemberWon(Player* plr, uint32 againstMatchmakerRating, int32 teamratingchange = 12); - int32 LostAgainst(uint32 againstRating); - void MemberLost(Player* plr, uint32 againstMatchmakerRating, int32 teamratingchange = -12); - void OfflineMemberLost(uint64 guid, uint32 againstMatchmakerRating, int32 teamratingchange = -12); + int32 WonAgainst(uint32 Own_MMRating, uint32 Opponent_MMRating, int32& rating_change); + void MemberWon(Player* plr, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange); + int32 LostAgainst(uint32 Own_MMRating, uint32 Opponent_MMRating, int32& rating_change); + void MemberLost(Player* plr, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange = -12); + void OfflineMemberLost(uint64 guid, uint32 againstMatchmakerRating, int32 MatchmakerRatingChange = -12); void UpdateArenaPointsHelper(std::map<uint32, uint32> & PlayerPoints); |