mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-01-13 01:08:37 +00:00
Fixed oversight and added disable option for ilevel multiplier.
This commit is contained in:
@@ -200,6 +200,7 @@ AuctionHouseBot.PriceMultiplier.Quality.Heirloom = 3
|
|||||||
# Multiplier applied to item level when determining auction price
|
# Multiplier applied to item level when determining auction price
|
||||||
# Final multiplier = itemLevel * this value
|
# Final multiplier = itemLevel * this value
|
||||||
# Default: 0.1
|
# Default: 0.1
|
||||||
|
# Set to 0 to disable this multiplier.
|
||||||
AuctionHouseBot.PriceMultiplier.ItemLevel = 0.1
|
AuctionHouseBot.PriceMultiplier.ItemLevel = 0.1
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|||||||
@@ -165,11 +165,12 @@ void AuctionHouseBot::calculateItemValue(ItemTemplate const* itemProto, uint64&
|
|||||||
outBuyoutPrice *= classPriceMultiplier;
|
outBuyoutPrice *= classPriceMultiplier;
|
||||||
|
|
||||||
// Apply item level multiplier
|
// 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 a vendor sells this item, make the price at least that high
|
||||||
if (itemProto->SellPrice > outBuyoutPrice)
|
if (itemProto->SellPrice > outBuyoutPrice)
|
||||||
outBuyoutPrice = itemProto->SellPrice;
|
outBuyoutPrice = itemProto->SellPrice;
|
||||||
|
|||||||
Reference in New Issue
Block a user