Core/Quests: Implemented proper calculation of quest honor reward using DBC
Signed-off-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
1 parent
82b7f30271
commit
c006f1b904
7 files changed
+34
-6
No files matched your search
@@ -14694,10 +14694,8 @@ void Player::RewardQuest(Quest const *pQuest, uint32 reward, Object* questGiver,
|
||||
}
|
||||
|
||||
// honor reward
|
||||
if (pQuest->GetRewHonorAddition())
|
||||
RewardHonor(NULL, 0, pQuest->GetRewHonorAddition());
|
||||
if (pQuest->GetRewHonorMultiplier())
|
||||
RewardHonor(NULL, 0, Trinity::Honor::hk_honor_at_level(getLevel(), pQuest->GetRewHonorMultiplier()));
|
||||
if (uint32 honor = pQuest->CalculateHonorGain(getLevel()))
|
||||
RewardHonor(NULL, 0, honor);
|
||||
|
||||
// title reward
|
||||
if (pQuest->GetCharTitleId())
|
||||
|
||||
Reference in new issue
Block a user