ammo init

This commit is contained in:
Yunfan Li
2023-09-06 11:38:03 +08:00
parent 891636724b
commit fdb62c6cc0
4 changed files with 8 additions and 3 deletions

View File

@@ -2406,7 +2406,11 @@ void PlayerbotFactory::InitReagents()
}
break;
case CLASS_SHAMAN:
items.push_back({46978, 1}); // Totem
// items.push_back({46978, 1}); // Totem
items.push_back({5175, 1}); // Earth Totem
items.push_back({5176, 1}); // Flame Totem
items.push_back({5177, 1}); // Water Totem
items.push_back({5178, 1}); // Air Totem
if (bot->getLevel() >= 30)
items.push_back({17030, 40}); // Ankh
break;

View File

@@ -120,6 +120,7 @@ class PlayerbotFactory : public InventoryAction
void InitClassSpells();
void InitEquipment(bool incremental);
void InitPet();
void InitAmmo();
private:
void Prepare();
@@ -140,7 +141,6 @@ class PlayerbotFactory : public InventoryAction
void ClearInventory();
void ClearAllItems();
void ResetQuests();
void InitAmmo();
void InitMounts();
void InitPotions();
void InitFood();

View File

@@ -43,6 +43,7 @@ void AutoLearnSpellAction::LearnTrainerSpells(std::ostringstream* out)
PlayerbotFactory factory(bot, bot->GetLevel());
factory.InitClassSpells();
factory.InitAvailableSpells();
factory.InitSkills();
factory.InitPet();
// bot->LearnDefaultSkills();

View File

@@ -21,5 +21,5 @@ void AutoTeleportForLevelAction::AutoUpgradeEquip() {
}
PlayerbotFactory factory(bot, bot->GetLevel(), ITEM_QUALITY_RARE);
factory.InitEquipment(true);
factory.InitSkills();
factory.InitAmmo();
}