Core/PacketIO: Fixed quest rewards

This commit is contained in:
Shauren
2016-06-28 20:23:09 +02:00
parent 1c10f9c311
commit d5fa0e783a
3 changed files with 3 additions and 0 deletions

View File

@@ -273,6 +273,7 @@ void Quest::BuildQuestRewards(WorldPackets::Quest::QuestRewards& rewards, Player
rewards.ItemCount = GetRewItemsCount();
rewards.Money = player->GetQuestMoneyReward(this);
rewards.XP = player->GetQuestXPReward(this);
rewards.ArtifactCategoryID = GetArtifactCategoryId();
rewards.Title = GetRewTitle();
rewards.FactionFlags = GetRewardReputationMask();
for (uint32 i = 0; i < QUEST_REWARD_DISPLAY_SPELL_COUNT; ++i)

View File

@@ -228,6 +228,7 @@ ByteBuffer& operator<<(ByteBuffer& data, WorldPackets::Quest::QuestRewards const
data << int32(questRewards.Money);
data << int32(questRewards.XP);
data << int32(questRewards.ArtifactXP);
data << int32(questRewards.ArtifactCategoryID);
data << int32(questRewards.Honor);
data << int32(questRewards.Title);
data << int32(questRewards.FactionFlags);

View File

@@ -222,6 +222,7 @@ namespace WorldPackets
int32 Money = 0;
int32 XP = 0;
int32 ArtifactXP = 0;
int32 ArtifactCategoryID = 0;
int32 Honor = 0;
int32 Title = 0;
int32 FactionFlags = 0;