From 372b821abe466853a1abc0611117fb937d504ca8 Mon Sep 17 00:00:00 2001 From: zeb <37308742+zeb139@users.noreply.github.com> Date: Mon, 8 Sep 2025 09:45:37 -0400 Subject: [PATCH] Updated pricing formula for cloth trade goods --- src/AuctionHouseBot.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/AuctionHouseBot.cpp b/src/AuctionHouseBot.cpp index 52bfcb2..f8f0473 100644 --- a/src/AuctionHouseBot.cpp +++ b/src/AuctionHouseBot.cpp @@ -138,8 +138,9 @@ void AuctionHouseBot::calculateItemValue(ItemTemplate const* itemProto, uint64& switch (itemProto->SubClass) { case ITEM_SUBCLASS_CLOTH: - { - subclassPriceMultiplier = std::pow(1.1,(itemProto->ItemLevel/3.5)) - (itemProto->ItemLevel/50.0); + { + double clothMultiplierHelper = std::log(1.0 + (itemProto->ItemLevel)); + subclassPriceMultiplier = ((std::pow(clothMultiplierHelper,2.0)) / (1 + (0.8 * clothMultiplierHelper))) + (0.001 * std::pow(clothMultiplierHelper,3.5)) - 0.3; break; } case ITEM_SUBCLASS_HERB: