Simplified and cleaned up honor calculation.
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user