fix equip replace bug

This commit is contained in:
Yunfan Li
2023-07-14 14:46:02 +08:00
parent 88fcfc9c65
commit c21b534e47
5 changed files with 21 additions and 16 deletions

View File

@@ -114,6 +114,7 @@ class PlayerbotFactory : public InventoryAction
void InitSkills();
static uint32 tradeSkills[];
static float CalculateItemScore(uint32 item_id, Player* bot);
private:
void Prepare();
@@ -164,10 +165,9 @@ class PlayerbotFactory : public InventoryAction
static void AddPrevQuests(uint32 questId, std::list<uint32>& questIds);
void LoadEnchantContainer();
void ApplyEnchantTemplate();
void ApplyEnchantTemplate(uint8 spec);
float CalculateItemScore(uint32 item_id);
bool IsShieldTank();
bool NotSameArmorType(uint32 item_subclass_armor);
void ApplyEnchantTemplate(uint8 spec);
static bool IsShieldTank(Player* bot);
static bool NotSameArmorType(uint32 item_subclass_armor, Player* bot);
EnchantContainer::const_iterator GetEnchantContainerBegin() { return m_EnchantContainer.begin(); }
EnchantContainer::const_iterator GetEnchantContainerEnd() { return m_EnchantContainer.end(); }