AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Acore::Honor Namespace Reference

Functions

float hk_honor_at_level_f (uint8 level, float multiplier=1.0f)
 
uint32 hk_honor_at_level (uint8 level, float multiplier=1.0f)
 

Function Documentation

◆ hk_honor_at_level()

uint32 Acore::Honor::hk_honor_at_level ( uint8  level,
float  multiplier = 1.0f 
)
inline
39 {
40 return uint32(std::ceil(hk_honor_at_level_f(level, multiplier)));
41 }
std::uint32_t uint32
Definition: Define.h:107
float hk_honor_at_level_f(uint8 level, float multiplier=1.0f)
Definition: Formulas.h:31

References hk_honor_at_level_f().

Referenced by BattlegroundMgr::BuildBattlegroundListPacket(), Spell::EffectAddHonor(), Battleground::GetBonusHonorFromKill(), and TEST().

◆ hk_honor_at_level_f()

float Acore::Honor::hk_honor_at_level_f ( uint8  level,
float  multiplier = 1.0f 
)
inline
32 {
33 float honor = multiplier * level * 1.55f;
34 //sScriptMgr->OnHonorCalculation(honor, level, multiplier); // pussywizard: optimization
35 return honor;
36 }

Referenced by hk_honor_at_level(), and Player::RewardHonor().