mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Revert "Feat: Filter bot logins by level range" (#1705)
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user