mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-18 03:05:43 +00:00
Merge pull request #330 from BenWagner-UX/Lfg-Fix
fixed: Bots are now able to join LFG - Missing worker activation implementation
This commit is contained in:
@@ -384,6 +384,12 @@ void RandomPlayerbotMgr::UpdateAIInternal(uint32 elapsed, bool /*minimal*/)
|
|||||||
activateCheckBgQueueThread();
|
activateCheckBgQueueThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sPlayerbotAIConfig->randomBotJoinLfg/* && !players.empty()*/)
|
||||||
|
{
|
||||||
|
if (time(nullptr) > (LfgCheckTimer + 30))
|
||||||
|
activateCheckLfgQueueThread();
|
||||||
|
}
|
||||||
|
|
||||||
uint32 updateBots = sPlayerbotAIConfig->randomBotsPerInterval * onlineBotFocus / 100;
|
uint32 updateBots = sPlayerbotAIConfig->randomBotsPerInterval * onlineBotFocus / 100;
|
||||||
uint32 maxNewBots = onlineBotCount < maxAllowedBotCount ? maxAllowedBotCount - onlineBotCount : 0;
|
uint32 maxNewBots = onlineBotCount < maxAllowedBotCount ? maxAllowedBotCount - onlineBotCount : 0;
|
||||||
uint32 loginBots = std::min(sPlayerbotAIConfig->randomBotsPerInterval - updateBots, maxNewBots);
|
uint32 loginBots = std::min(sPlayerbotAIConfig->randomBotsPerInterval - updateBots, maxNewBots);
|
||||||
|
|||||||
Reference in New Issue
Block a user