FuBar_HonorFuPlus

Whether this project is out of date or its author marked it as abandoned, this project is no longer maintained.

If you wish to take this project over, please report it and state your intentions.

This is a mod of the original HonorFu by ckknight. It will update honor points dynamically as they are gained or spent. The options allow for Arena points to be displayed in this manner as well. The tooltip has been updated to show Battleground Marks of Honor and arena points. Bugfixes will accurately show BG wins and losses as well as kills and deaths per session.

This addon didn't look like it was being updated, so I made some modifications to it myself. Minor things like adding Isle, fixing Strand and the holiday calculations, which you've included in this update.

But one thing I did that I thought was really useful was changing from using GloryLib to count win/losses, to using the statistics/achievement API to do it.

Here's the gist of the changes:

localBattlegroundWinStatisticIds={["Warsong Gulch"]=105,["Arathi Basin"]=51,["Alterac Valley"]=49,["Eye of the Storm"]=50,["Strand of the Ancients"]=1550,["Isle of Conquest"]=4097,["All"]=840}functionHonorFuPlus:GetBattlegroundWins(battlegroundName)localwins=GetStatistic(BattlegroundWinStatisticIds[battlegroundName])ifwins==nilorwins=='--'thenreturn0endreturntonumber(wins)endlocalBattlegroundPlayedStatisticIds={["Warsong Gulch"]=52,["Arathi Basin"]=55,["Alterac Valley"]=53,["Eye of the Storm"]=54,["Strand of the Ancients"]=1549,["Isle of Conquest"]=4096,["All"]=839}functionHonorFuPlus:GetBattlegroundLosses(battlegroundName)localwinStatisticId=BattlegroundWinStatisticIds[battlegroundName]localplayedStatisticId=BattlegroundPlayedStatisticIds[battlegroundName]localgames=GetStatistic(playedStatisticId)localwins=GetStatistic(winStatisticId)ifgames==nilorwins==nilorgames=='--'orwins=='--'thenreturn0endreturntonumber(games)-tonumber(wins)end

If you want to discuss this more, give me a shout: rythos42 at gmail.com or a PM here I'll bet will reach me :). If you want to use this, feel free to without talking with me first - it's a gift so this neat little mod continues to be useful to people :)