mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core/PacketIO: Fixed quest rewards
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user