Revert "Feat: Filter bot logins by level range" (#1705)

This commit is contained in:
bash
2025-10-03 22:58:30 +02:00
committed by GitHub
parent 2a340ce68f
commit 377ac199a7
6 changed files with 40 additions and 257 deletions

View File

@@ -193,14 +193,6 @@ public:
void AssignAccountTypes();
bool IsAccountType(uint32 accountId, uint8 accountType);
// Allowed login range management
void ForceRecount() { SetEventValue(0, "bot_count", 0, 0); }
void MarkBotForLogout(uint32 bot)
{
SetEventValue(bot, "add", 0, 0); // Clear the "add" event to trigger logout
SetEventValue(bot, "logout", 1, 1); // Also set logout for clarity
}
protected:
void OnBotLoginInternal(Player* const bot) override;
@@ -245,16 +237,6 @@ private:
std::vector<uint32> rndBotTypeAccounts; // Accounts marked as RNDbot (type 1)
std::vector<uint32> addClassTypeAccounts; // Accounts marked as AddClass (type 2)
// Login level filtering
bool levelFilterAdjusted = false;
void PopulateEligibleBots();
bool IsLevelFilterActive() const
{
return sPlayerbotAIConfig &&
(sPlayerbotAIConfig->randomBotMinLoginLevel > 1 ||
sPlayerbotAIConfig->randomBotMaxLoginLevel < 80);
}
//void ScaleBotActivity(); // Deprecated function
};