AHBot - Fix maxstack DB option to correctly set stacks to a random choice between 1 and the maxstack setting of the item, instead of 1. - Thanks T`lexii for pointing this out
--HG-- branch : trunk
This commit is contained in:
@@ -387,6 +387,8 @@ void AuctionHouseBot::addNewAuctions(Player *AHBplayer, AHBConfig *config)
|
||||
{
|
||||
if (config->GetMaxStack(prototype->Quality) > 1 && item->GetMaxStackCount() > 1)
|
||||
stackCount = urand(1, minValue(item->GetMaxStackCount(), config->GetMaxStack(prototype->Quality)));
|
||||
else if (config->GetMaxStack(prototype->Quality) == 0 && item->GetMaxStackCount() > 1)
|
||||
stackCount = urand(1, item->GetMaxStackCount());
|
||||
else
|
||||
stackCount = 1;
|
||||
buyoutPrice *= urand(config->GetMinPrice(prototype->Quality), config->GetMaxPrice(prototype->Quality));
|
||||
|
||||
Reference in New Issue
Block a user