Core/Quests: Fix questgiver status for trivial and future quests

Port From (https://github.com/TrinityCore/TrinityCore/commit/0d9dd75fe2112bcc119ee0209eef00eabfbe0bce)
This commit is contained in:
hondacrx
2024-01-29 15:24:56 -05:00
parent d96f7fb821
commit 3080eac1ce
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -2088,7 +2088,7 @@ namespace Game.Entities
if (quest.IsTurnIn() && CanTakeQuest(quest, false) && quest.IsRepeatable() && !quest.IsDailyOrWeekly() && !quest.IsMonthly()) if (quest.IsTurnIn() && CanTakeQuest(quest, false) && quest.IsRepeatable() && !quest.IsDailyOrWeekly() && !quest.IsMonthly())
{ {
if (GetLevel() <= (GetQuestLevel(quest) + WorldConfig.GetIntValue(WorldCfg.QuestLowLevelHideDiff))) if (GetLevel() > (GetQuestLevel(quest) + WorldConfig.GetIntValue(WorldCfg.QuestLowLevelHideDiff)))
result |= QuestGiverStatus.RepeatableTurnin; result |= QuestGiverStatus.RepeatableTurnin;
else else
result |= QuestGiverStatus.TrivialRepeatableTurnin; result |= QuestGiverStatus.TrivialRepeatableTurnin;
@@ -2110,7 +2110,7 @@ namespace Game.Entities
{ {
if (SatisfyQuestLevel(quest, false)) if (SatisfyQuestLevel(quest, false))
{ {
bool isTrivial = GetLevel() <= (GetQuestLevel(quest) + WorldConfig.GetIntValue(WorldCfg.QuestLowLevelHideDiff)); bool isTrivial = GetLevel() > (GetQuestLevel(quest) + WorldConfig.GetIntValue(WorldCfg.QuestLowLevelHideDiff));
if (quest.IsImportant()) if (quest.IsImportant())
result |= isTrivial ? QuestGiverStatus.TrivialImportantQuest : QuestGiverStatus.ImportantQuest; result |= isTrivial ? QuestGiverStatus.TrivialImportantQuest : QuestGiverStatus.ImportantQuest;
else if (quest.GetQuestTag() == QuestTagType.CovenantCalling) else if (quest.GetQuestTag() == QuestTagType.CovenantCalling)
+6 -6
View File
@@ -1041,22 +1041,22 @@ Quests.EnableQuestTracker = 0
# #
# Quests.LowLevelHideDiff # Quests.LowLevelHideDiff
# Description: Level difference between player and quest level at which quests are # Description: Level difference between player and quest level at which quests are
# considered low-level and are not shown via exclamation mark (!) at quest # considered trivial and are not shown via exclamation mark (!) at quest
# givers. # givers by default.
# Default: 4 - (Enabled, Hide quests that have 4 levels less than the character) # Default: 5 - (Enabled, Hide quests that have 6 levels less than the character)
# -1 - (Disabled, Show all available quest marks) # -1 - (Disabled, Show all available quest marks)
Quests.LowLevelHideDiff = 4 Quests.LowLevelHideDiff = 5
# #
# Quests.HighLevelHideDiff # Quests.HighLevelHideDiff
# Description: Level difference between player and quest level at which quests are # Description: Level difference between player and quest level at which quests are
# considered high-level and are not shown via exclamation mark (!) at quest # considered high-level and are not shown via exclamation mark (!) at quest
# givers. # givers.
# Default: 7 - (Enabled, Hide quests that have 7 levels more than the character) # Default: 2 - (Enabled, Hide quests that have 2 levels more than the character)
# -1 - (Disabled, Show all available quest marks) # -1 - (Disabled, Show all available quest marks)
Quests.HighLevelHideDiff = 7 Quests.HighLevelHideDiff = 2
# #
# Quests.IgnoreRaid # Quests.IgnoreRaid