From 47f16ae7d09ae9c1eaf4d62892c76f5e80e08b74 Mon Sep 17 00:00:00 2001 From: NathanHandley Date: Tue, 16 Jan 2024 13:02:50 -0600 Subject: [PATCH] Double chance of some trade goods being posted --- src/AuctionHouseBot.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/AuctionHouseBot.cpp b/src/AuctionHouseBot.cpp index 75c8dba..3b99f6d 100644 --- a/src/AuctionHouseBot.cpp +++ b/src/AuctionHouseBot.cpp @@ -382,6 +382,17 @@ void AuctionHouseBot::populateItemCandidateList() // Store the item ID itemCandidatesByItemClass[itr->second.Class].push_back(itr->second.ItemId); + + // Store a second copy if it's a trade good of certain types to double the chances + if (itr->second.Class == ITEM_CLASS_TRADE_GOODS) + { + if (itr->second.SubClass == ITEM_SUBCLASS_CLOTH || itr->second.SubClass == ITEM_SUBCLASS_LEATHER || + itr->second.SubClass == ITEM_SUBCLASS_ENCHANTING || itr->second.SubClass == ITEM_SUBCLASS_HERB || + itr->second.SubClass == ITEM_SUBCLASS_METAL_STONE) + { + itemCandidatesByItemClass[itr->second.Class].push_back(itr->second.ItemId); + } + } } }