mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-14 09:39:13 +00:00
Fixed oversight and added disable option for ilevel multiplier.
This commit is contained in:
@@ -165,11 +165,12 @@ void AuctionHouseBot::calculateItemValue(ItemTemplate const* itemProto, uint64&
|
||||
outBuyoutPrice *= classPriceMultiplier;
|
||||
|
||||
// Apply item level multiplier
|
||||
if (itemProto->ItemLevel > 0)
|
||||
if (ItemLevelPriceMultiplier > 0.0f && itemProto->ItemLevel > 0)
|
||||
{
|
||||
outBuyoutPrice *= itemProto->ItemLevel * ItemLevelPriceMultiplier;
|
||||
outBuyoutPrice *= itemProto->ItemLevel * ItemLevelPriceMultiplier;
|
||||
}
|
||||
|
||||
|
||||
// If a vendor sells this item, make the price at least that high
|
||||
if (itemProto->SellPrice > outBuyoutPrice)
|
||||
outBuyoutPrice = itemProto->SellPrice;
|
||||
|
||||
Reference in New Issue
Block a user