Merge pull request #9 from NathanHandley/BotSellRework

Keep bid price always above sell price
This commit is contained in:
Nathan Handley
2023-11-16 09:19:14 -06:00
committed by GitHub

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)