Skip to content

Commit

Permalink
Merge pull request #168 from arog85/1.7.17
Browse files Browse the repository at this point in the history
Added 2500 RP Weekly decay cap to rank estimate
  • Loading branch information
kakysha authored Jan 4, 2022
2 parents f3af1a8 + 542bc2a commit 6146bfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions honorspy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ function HonorSpy:Estimate(playerOfInterest)
local award = RP[bracket] + rp_factor * inside_br_progress;
local RP = HonorSpy.db.factionrealm.currentStandings[playerOfInterest].RP;
local EstRP = math.floor(RP*decay_factor+award+.5);
--Max 2500 RP per week decay. Applies to Classic Era and Season of Mastery
if ((RP-EstRP) > 2500) then
EstRP = RP - 2500
end
local Rank = HonorSpy.db.factionrealm.currentStandings[playerOfInterest].rank;
local EstRank = 14;
local Progress = math.floor(HonorSpy.db.factionrealm.currentStandings[playerOfInterest].rankProgress*100);
Expand Down
2 changes: 1 addition & 1 deletion honorspy.toc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

## Author: kakysha
## OptionalDeps: Ace3
## Version: 1.7.16
## Version: 1.7.17

## X-Category: Battlegrounds/PvP
## SavedVariables: HonorSpyDB
Expand Down

0 comments on commit 6146bfe

Please sign in to comment.