Jump to content

[Patch/update] Arena points calculation update

Guest Mustakyy

Recommended Posts


I don't have git at the moment and did not test this but this patch is quite simple and should not have any issues. :)

What bug does the patch fix? What features does the patch add?

It fixes arenapoints calculation rules at season 6 and later.

"As of Season 6 and later, the arena system was changed so that new teams start with a rating of 0 rather than 1500. Consequently, the formula was changed so that all teams below 1500 rating will earn points as if they were a 1500 rated team." Source http://www.wowwiki.com/Arena_points

For which repository revision was the patch created?

[9545] + (was the last time arenateam.cpp was changed)

Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

Did not find any yet.

Who has been writing this patch? Please include either forum user names or email addresses.


Patch target file: ArenaTeam.cpp

Function: uint32 ArenaTeam::GetPoints(uint32 MemberRating)

Original lines 527-530

if(rating <= 1500)
  points = (float)rating * 0.22f + 14.0f;
  points = 1511.26f / (1.0f + 1639.28f * exp(-0.00412f * (float)rating));

Patch proposal:

if (rating <= 1500)
  //At arena season 6 and later all who have rating less than 1500 will get points like they have 1500 rating
  if (sWorld.getConfig(CONFIG_UINT32_ARENA_SEASON_ID) >= 6)
     points = 1500.0f * 0.22f + 14.0f;
     points = (float)rating * 0.22f + 14.0f;
  points = 1511.26f / (1.0f + 1639.28f * exp(-0.00412f *  (float)rating));

I only added one if statement to check the arena season ID.

Edit: better proposal :)

Link to comment
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use