From afa32e8e51172bb54b9230aa4cf83e7b0742fde5 Mon Sep 17 00:00:00 2001 From: Revision Date: Wed, 23 Oct 2024 00:18:44 +0200 Subject: [PATCH] Fix the level when a quest becomes trivial (grey/gray) --- src/strategy/actions/DropQuestAction.cpp | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/strategy/actions/DropQuestAction.cpp b/src/strategy/actions/DropQuestAction.cpp index 910e5498..2a23c019 100644 --- a/src/strategy/actions/DropQuestAction.cpp +++ b/src/strategy/actions/DropQuestAction.cpp @@ -101,8 +101,24 @@ bool CleanQuestLogAction::Execute(Event event) questLevel = botLevel; } + // Set the level difference for when a quest becomes trivial + // This was determined by using the Lua code the client uses + int32 trivialLevel = 5; + if (botLevel >= 40) + { + trivialLevel = 8; + } + else if (botLevel >= 30) + { + trivialLevel = 7; + } + else if (botLevel >= 20) + { + trivialLevel = 6; + } + // Check if the quest is trivial (grey) for the bot - if ((botLevel - questLevel) >= 5) + if ((botLevel - questLevel) >= trivialLevel) { // Output only if "debug rpg" strategy is enabled if (botAI->HasStrategy("debug rpg", BotState::BOT_STATE_COMBAT))