Skip to content

Commit

Permalink
Fix the level when a quest becomes trivial (grey/gray)
Browse files Browse the repository at this point in the history
  • Loading branch information
noisiver committed Oct 22, 2024
1 parent 599c26b commit a2f7854
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/strategy/actions/DropQuestAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a2f7854

Please sign in to comment.