This commit is contained in:
Yunfan Li
2023-10-25 20:29:32 +08:00
parent b16c104ba7
commit 10462126b4
7 changed files with 14 additions and 5 deletions

View File

@@ -1335,7 +1335,7 @@ void PlayerbotFactory::InitEquipment(bool incremental)
float bestScoreForSlot = -1;
uint32 bestItemForSlot = 0;
for (int attempts = 0; attempts < std::min((int)ids.size(), 25); attempts++)
for (int attempts = 0; attempts < std::max((int)(ids.size() * 0.75), 1); attempts++)
{
uint32 index = urand(0, ids.size() - 1);
uint32 newItemId = ids[index];