Prevent auction buyouts from being > 100k

This commit is contained in:
NathanHandley
2025-09-16 19:01:01 -05:00
parent 67ac281e60
commit 32f447e937
2 changed files with 6 additions and 2 deletions

View File

@@ -462,6 +462,10 @@ void AuctionHouseBot::calculateItemValue(ItemTemplate const* itemProto, uint64&
if (itemProto->SellPrice > outBuyoutPrice)
outBuyoutPrice = itemProto->SellPrice;
// Avoid price overflows
if (outBuyoutPrice > 1000000000)
outBuyoutPrice = 1000000000;
// Calculate a bid price based on a variance against buyout price
float sellVarianceBidPriceTopPercent = 1;
float sellVarianceBidPriceBottomPercent = .75;