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; break;
case CLASS_SHAMAN: 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) if (bot->getLevel() >= 30)
items.push_back({17030, 40}); // Ankh items.push_back({17030, 40}); // Ankh
break; break;

View File

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

View File

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

View File

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