equipmentPersistence

This commit is contained in:
Yunfan Li
2023-09-15 00:06:45 +08:00
parent 0ea649340e
commit be13e0e189
5 changed files with 24 additions and 7 deletions

View File

@@ -20,6 +20,8 @@ void AutoTeleportForLevelAction::AutoUpgradeEquip() {
return;
}
PlayerbotFactory factory(bot, bot->GetLevel(), ITEM_QUALITY_RARE);
factory.InitEquipment(true);
if (!sPlayerbotAIConfig->equipmentPersistence || bot->GetLevel() < sPlayerbotAIConfig->equipmentPersistenceLevel) {
factory.InitEquipment(true);
}
factory.InitAmmo();
}