Core/Quests: Fix questgiver status for trivial and future quests (#29328)

This commit is contained in:
Meji
2023-09-19 21:37:14 +02:00
committed by GitHub
parent 47fc3cb852
commit 0d9dd75fe2
2 changed files with 8 additions and 8 deletions

View File

@@ -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)

View File

@@ -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