Core/Quests: Fixed questgiver icons

Closes #25702
This commit is contained in:
Shauren
2020-12-11 22:19:19 +01:00
parent a50f671afd
commit 5f3a2d2abf
19 changed files with 217 additions and 56 deletions

View File

@@ -314,6 +314,14 @@ uint32 Quest::MoneyValue(Player const* player) const
return 0;
}
Optional<QuestTagType> Quest::GetQuestTag() const
{
if (QuestInfoEntry const* questInfo = sQuestInfoStore.LookupEntry(GetQuestInfoID()))
return static_cast<QuestTagType>(questInfo->Type);
return {};
}
void Quest::BuildQuestRewards(WorldPackets::Quest::QuestRewards& rewards, Player* player) const
{
rewards.ChoiceItemCount = GetRewChoiceItemsCount();