mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Quests: Fix questgiver status for trivial and future quests (#29328)
This commit is contained in:
@@ -16170,7 +16170,7 @@ QuestGiverStatus Player::GetQuestDialogStatus(Object const* questgiver) const
|
||||
|
||||
if (quest->IsTurnIn() && CanTakeQuest(quest, false) && quest->IsRepeatable() && !quest->IsDailyOrWeekly() && !quest->IsMonthly())
|
||||
{
|
||||
if (GetLevel() <= (GetQuestLevel(quest) + sWorld->getIntConfig(CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF)))
|
||||
if (GetLevel() > (GetQuestLevel(quest) + sWorld->getIntConfig(CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF)))
|
||||
result |= QuestGiverStatus::RepeatableTurnin;
|
||||
else
|
||||
result |= QuestGiverStatus::TrivialRepeatableTurnin;
|
||||
@@ -16192,7 +16192,7 @@ QuestGiverStatus Player::GetQuestDialogStatus(Object const* questgiver) const
|
||||
{
|
||||
if (SatisfyQuestLevel(quest, false))
|
||||
{
|
||||
bool isTrivial = GetLevel() <= (GetQuestLevel(quest) + sWorld->getIntConfig(CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF));
|
||||
bool isTrivial = GetLevel() > (GetQuestLevel(quest) + sWorld->getIntConfig(CONFIG_QUEST_LOW_LEVEL_HIDE_DIFF));
|
||||
if (quest->IsImportant())
|
||||
result |= isTrivial ? QuestGiverStatus::TrivialImportantQuest : QuestGiverStatus::ImportantQuest;
|
||||
else if (quest->GetQuestTag() == QuestTagType::CovenantCalling)
|
||||
|
||||
@@ -1069,22 +1069,22 @@ Quests.EnableQuestTracker = 0
|
||||
#
|
||||
# Quests.LowLevelHideDiff
|
||||
# Description: Level difference between player and quest level at which quests are
|
||||
# considered low-level and are not shown via exclamation mark (!) at quest
|
||||
# givers.
|
||||
# Default: 4 - (Enabled, Hide quests that have 4 levels less than the character)
|
||||
# considered trivial and are not shown via exclamation mark (!) at quest
|
||||
# givers by default.
|
||||
# Default: 5 - (Enabled, Hide quests that have 6 levels less than the character)
|
||||
# -1 - (Disabled, Show all available quest marks)
|
||||
|
||||
Quests.LowLevelHideDiff = 4
|
||||
Quests.LowLevelHideDiff = 5
|
||||
|
||||
#
|
||||
# Quests.HighLevelHideDiff
|
||||
# Description: Level difference between player and quest level at which quests are
|
||||
# considered high-level and are not shown via exclamation mark (!) at quest
|
||||
# givers.
|
||||
# Default: 7 - (Enabled, Hide quests that have 7 levels more than the character)
|
||||
# Default: 2 - (Enabled, Hide quests that have 3 levels more than the character)
|
||||
# -1 - (Disabled, Show all available quest marks)
|
||||
|
||||
Quests.HighLevelHideDiff = 7
|
||||
Quests.HighLevelHideDiff = 2
|
||||
|
||||
#
|
||||
# Quests.IgnoreRaid
|
||||
|
||||
Reference in New Issue
Block a user