Simplified and cleaned up honor calculation.

--HG--
branch : trunk
This commit is contained in:
Xanadu
2010-06-25 15:58:27 +02:00
parent 66535c3700
commit fec8ca58b5
6 changed files with 57 additions and 59 deletions
+6 -1
View File
@@ -27,9 +27,14 @@ namespace Trinity
{
namespace Honor
{
inline float hk_honor_at_level_f(uint8 level, uint32 count = 1)
{
return count * level * 1.55f;
}
inline uint32 hk_honor_at_level(uint8 level, uint32 count = 1)
{
return uint32(ceil(count * (33.333f * ((float)level) / 21.50537f)));
return ceil(hk_honor_at_level_f(level, count));
}
}
namespace XP