From 4d17352994600da7ddbb1af871535d206ef4571a Mon Sep 17 00:00:00 2001 From: NathanHandley Date: Mon, 13 Nov 2023 19:05:31 -0600 Subject: [PATCH] Disable more test items Remove more items with string patterns aligning to test items --- src/AuctionHouseBot.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/AuctionHouseBot.cpp b/src/AuctionHouseBot.cpp index 1bdd56f..4e81a38 100644 --- a/src/AuctionHouseBot.cpp +++ b/src/AuctionHouseBot.cpp @@ -698,6 +698,18 @@ void AuctionHouseBot::Initialize() continue; } + // Disable anything with the string literal of a testing or depricated item + if (itr->second.Name1.find("Test ") != std::string::npos || + itr->second.Name1.find("Unused") != std::string::npos || + itr->second.Name1.find("Deprecated") != std::string::npos || + itr->second.Name1.find(" Epic ") != std::string::npos || + itr->second.Name1.find("TEST") != std::string::npos) + { + if (debug_Out_Filters) + LOG_ERROR("module", "AuctionHouseBot: Item {} disabled item with a temp or unused item name", itr->second.ItemId); + continue; + } + // Store the item ID itemCandidates.push_back(itr->second.ItemId); }