mirror of
https://github.com/NathanHandley/mod-ah-bot-plus.git
synced 2026-02-07 21:01:59 +00:00
added feature: use DB drop rates for weapons/armor/recipes probability in AH
This commit is contained in:
@@ -24,7 +24,6 @@ public:
|
||||
if (HasPerformedStartup == true)
|
||||
{
|
||||
LOG_INFO("server.loading", "AuctionHouseBot: (Re)populating item candidate lists ...");
|
||||
auctionbot->PopulateItemCandidatesAndProportions();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,6 +31,11 @@ public:
|
||||
{
|
||||
LOG_INFO("server.loading", "AuctionHouseBot: (Re)populating item candidate lists ...");
|
||||
auctionbot->PopulateItemCandidatesAndProportions();
|
||||
if (sConfigMgr->GetOption<bool>("AuctionHouseBot.Seller.UseDBDropRates.Enabled", true))
|
||||
{
|
||||
auctionbot->PopulateQuestRewardItemIDs();
|
||||
auctionbot->PopulateItemDropChances();
|
||||
}
|
||||
HasPerformedStartup = true;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user