topN GetMixedGearScore

This commit is contained in:
Yunfan Li
2023-10-05 01:37:47 +08:00
parent 2aa7ff5a72
commit e75a824a85
3 changed files with 38 additions and 18 deletions

View File

@@ -573,10 +573,10 @@ std::string const PlayerbotHolder::ProcessBotCommand(std::string const cmd, Obje
}
else if (cmd == "init=auto")
{
uint32 mixedGearScore = PlayerbotAI::GetMixedGearScore(master, true, true) * 1.1f;
uint32 mixedGearScore = PlayerbotAI::GetMixedGearScore(master, false, false, 10) * 1.1f;
PlayerbotFactory factory(bot, master->getLevel(), ITEM_QUALITY_LEGENDARY, mixedGearScore);
factory.Randomize(false);
return "ok, gear score limit: " + std::to_string(mixedGearScore);
return "ok, gear score limit: " + std::to_string(mixedGearScore / 5) + "(for epic)";
}
}