[performance] smart scaling configurable (#834)

This commit is contained in:
bash
2025-01-02 19:02:06 +01:00
committed by GitHub
parent 823f9e87a6
commit b16a44c711
6 changed files with 33 additions and 38 deletions

View File

@@ -101,11 +101,11 @@ public:
if (sPlayerbotAIConfig->enabled || sPlayerbotAIConfig->randomBotAutologin)
{
std::string roundedTime =
std::to_string(std::ceil((sPlayerbotAIConfig->maxRandomBots * 0.13 / 60) * 10) / 10.0);
std::to_string(std::ceil((sPlayerbotAIConfig->maxRandomBots * 0.11 / 60) * 10) / 10.0);
roundedTime = roundedTime.substr(0, roundedTime.find('.') + 2);
ChatHandler(player->GetSession()).SendSysMessage(
"Playerbots: bot initialization at server startup will require '" + roundedTime + "' minutes.");
"Playerbots: bot initialization at server startup takes about '" + roundedTime + "' minutes.");
}
}
}