mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user