mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
ammo init
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -21,5 +21,5 @@ void AutoTeleportForLevelAction::AutoUpgradeEquip() {
|
||||
}
|
||||
PlayerbotFactory factory(bot, bot->GetLevel(), ITEM_QUALITY_RARE);
|
||||
factory.InitEquipment(true);
|
||||
factory.InitSkills();
|
||||
factory.InitAmmo();
|
||||
}
|
||||
Reference in New Issue
Block a user