Decrease price multiplier of trade goods by quality

This commit is contained in:
NathanHandley
2024-01-26 08:51:17 -06:00
parent 989f3f829c
commit f4faa1011f

View File

@@ -114,14 +114,14 @@ void AuctionHouseBot::calculateItemValue(ItemTemplate const* itemProto, uint64&
switch (itemProto->Quality)
{
case ITEM_QUALITY_UNCOMMON: powValue = 1.8; break;
case ITEM_QUALITY_RARE: powValue = 2; break;
case ITEM_QUALITY_EPIC: powValue = 2.3; break;
case ITEM_QUALITY_RARE: powValue = 1.9; break;
case ITEM_QUALITY_EPIC: powValue = 2.1; break;
default: break;
}
uint32 minPossiblePrice = (uint32)(pow((double)itemProto->ItemLevel, powValue));
if (minPossiblePrice > outBuyoutPrice)
{
outBuyoutPrice = urand(minPossiblePrice, minPossiblePrice * 1.2);
outBuyoutPrice = urand(minPossiblePrice, minPossiblePrice * 1.1);
}
}
}