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;
|
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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user