mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-30 00:53:48 +00:00
Added enchanting trade goods
This commit is contained in:
@@ -325,8 +325,11 @@ void AuctionHouseBot::populateItemCandidateList()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable all items that have neither a sell or a buy price, with exception of item enhancements
|
// Disable all items that have neither a sell or a buy price, with exception of item enhancements and trade goods
|
||||||
if (itr->second.SellPrice == 0 && itr->second.BuyPrice == 0 && itr->second.Class != ITEM_CLASS_CONSUMABLE && itr->second.SubClass != ITEM_SUBCLASS_ITEM_ENHANCEMENT)
|
bool isEnchantingTradeGood = (itr->second.Class == ITEM_CLASS_TRADE_GOODS && itr->second.SubClass == ITEM_SUBCLASS_ENCHANTING);
|
||||||
|
bool isItemEnhancement = (itr->second.Class == ITEM_CLASS_CONSUMABLE && itr->second.SubClass == ITEM_SUBCLASS_ITEM_ENHANCEMENT);
|
||||||
|
bool hasNoPrice = (itr->second.SellPrice == 0 && itr->second.BuyPrice == 0);
|
||||||
|
if (hasNoPrice == true && isItemEnhancement == false && isEnchantingTradeGood == false)
|
||||||
{
|
{
|
||||||
if (debug_Out_Filters)
|
if (debug_Out_Filters)
|
||||||
LOG_ERROR("module", "AuctionHouseBot: Item {} disabled misc item", itr->second.ItemId);
|
LOG_ERROR("module", "AuctionHouseBot: Item {} disabled misc item", itr->second.ItemId);
|
||||||
|
|||||||
Reference in New Issue
Block a user