Keep bid price always above sell price

This commit is contained in:
NathanHandley
2023-11-16 09:18:37 -06:00
parent f81a022797
commit 8198cc7a59

View File

@@ -126,6 +126,12 @@ void AuctionHouseBot::calculateItemValue(ItemTemplate const* itemProto, uint64&
outBuyoutPrice = urand(100 * itemProto->SellPrice, minLowPriceAddVariancePercent * itemProto->SellPrice);
outBuyoutPrice /= 100;
}
// Bid price can never be below sell price
if (outBidPrice < itemProto->SellPrice)
{
outBidPrice = itemProto->SellPrice;
}
}
void AuctionHouseBot::populatetemClassSeedListForItemClass(uint32 itemClass, uint32 itemClassSeedWeight)