mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 04:37:02 +00:00
Apply style fix pt5
This commit is contained in:
parent
4727d8846f
commit
1a1110b4f7
67 changed files with 648 additions and 214 deletions
|
|
@ -663,7 +663,9 @@ AuctionBotBuyer::AuctionBotBuyer(): m_CheckInterval(0)
|
|||
{
|
||||
// Define faction for our main data class.
|
||||
for (int i = 0; i < MAX_AUCTION_HOUSE_TYPE; ++i)
|
||||
{ m_HouseConfig[i].Initialize(AuctionHouseType(i)); }
|
||||
{
|
||||
m_HouseConfig[i].Initialize(AuctionHouseType(i));
|
||||
}
|
||||
}
|
||||
|
||||
AuctionBotBuyer::~AuctionBotBuyer()
|
||||
|
|
@ -1149,7 +1151,9 @@ AuctionBotSeller::AuctionBotSeller()
|
|||
{
|
||||
// Define faction for our main data class.
|
||||
for (int i = 0; i < MAX_AUCTION_HOUSE_TYPE; ++i)
|
||||
{ m_HouseConfig[i].Initialize(AuctionHouseType(i)); }
|
||||
{
|
||||
m_HouseConfig[i].Initialize(AuctionHouseType(i));
|
||||
}
|
||||
}
|
||||
|
||||
AuctionBotSeller::~AuctionBotSeller()
|
||||
|
|
@ -1744,7 +1748,9 @@ void AuctionBotSeller::LoadItemsQuantity(AHB_Seller_Config& config)
|
|||
sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_CLASS_RECIPE_AMOUNT) + sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_CLASS_QUIVER_AMOUNT) + sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_CLASS_QUEST_AMOUNT) +
|
||||
sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_CLASS_KEY_AMOUNT) + sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_CLASS_MISC_AMOUNT) + sAuctionBotConfig.getConfig(CONFIG_UINT32_AHBOT_CLASS_GLYPH_AMOUNT));
|
||||
for (uint32 i = 0; i < MAX_ITEM_CLASS; ++i)
|
||||
{ config.SetItemsAmountPerClass(AuctionQuality(j), ItemClass(i), indice); }
|
||||
{
|
||||
config.SetItemsAmountPerClass(AuctionQuality(j), ItemClass(i), indice);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1882,7 +1888,9 @@ void AuctionBotSeller::SetItemsRatio(uint32 al, uint32 ho, uint32 ne)
|
|||
sAuctionBotConfig.setConfig(CONFIG_UINT32_AHBOT_NEUTRAL_ITEM_AMOUNT_RATIO, ne < 10000 ? ne : 10000);
|
||||
|
||||
for (int i = 0; i < MAX_AUCTION_HOUSE_TYPE; ++i)
|
||||
{ LoadItemsQuantity(m_HouseConfig[i]); }
|
||||
{
|
||||
LoadItemsQuantity(m_HouseConfig[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void AuctionBotSeller::SetItemsRatioForHouse(AuctionHouseType house, uint32 val)
|
||||
|
|
@ -1913,7 +1921,9 @@ void AuctionBotSeller::SetItemsAmount(uint32(&vals) [MAX_AUCTION_QUALITY])
|
|||
sAuctionBotConfig.setConfig(CONFIG_UINT32_AHBOT_ITEM_YELLOW_AMOUNT, vals[AUCTION_QUALITY_YELLOW]);
|
||||
|
||||
for (int i = 0; i < MAX_AUCTION_HOUSE_TYPE; ++i)
|
||||
{ LoadItemsQuantity(m_HouseConfig[i]); }
|
||||
{
|
||||
LoadItemsQuantity(m_HouseConfig[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void AuctionBotSeller::SetItemsAmountForQuality(AuctionQuality quality, uint32 val)
|
||||
|
|
@ -1930,7 +1940,9 @@ void AuctionBotSeller::SetItemsAmountForQuality(AuctionQuality quality, uint32 v
|
|||
}
|
||||
|
||||
for (int i = 0; i < MAX_AUCTION_HOUSE_TYPE; ++i)
|
||||
{ LoadItemsQuantity(m_HouseConfig[i]); }
|
||||
{
|
||||
LoadItemsQuantity(m_HouseConfig[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// Add new auction to one of the factions.
|
||||
|
|
@ -2129,7 +2141,9 @@ void AuctionHouseBot::PrepareStatusInfos(AuctionHouseBotStatusInfo& statusInfo)
|
|||
statusInfo[i].ItemsCount = 0;
|
||||
|
||||
for (int j = 0; j < MAX_AUCTION_QUALITY; ++j)
|
||||
{ statusInfo[i].QualityInfo[j] = 0; }
|
||||
{
|
||||
statusInfo[i].QualityInfo[j] = 0;
|
||||
}
|
||||
|
||||
AuctionHouseObject::AuctionEntryMapBounds bounds = sAuctionMgr.GetAuctionsMap(AuctionHouseType(i))->GetAuctionsBounds();
|
||||
for (AuctionHouseObject::AuctionEntryMap::const_iterator itr = bounds.first; itr != bounds.second; ++itr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue