Skip to content

Commit

Permalink
Rig random battleground BattlemasterListEntry to have correct data to…
Browse files Browse the repository at this point in the history
… play ball with our gossips
  • Loading branch information
killerwife committed Nov 22, 2023
1 parent 51d26e3 commit e6cf8cb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/game/Server/DBCStores.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,17 @@ void LoadDBCStores(const std::string& dataPath)
LoadDBC(availableDbcLocales, bar, bad_dbc_files, sAuctionHouseStore, dbcPath, "AuctionHouse.dbc");
LoadDBC(availableDbcLocales, bar, bad_dbc_files, sBankBagSlotPricesStore, dbcPath, "BankBagSlotPrices.dbc");
LoadDBC(availableDbcLocales, bar, bad_dbc_files, sBattlemasterListStore, dbcPath, "BattlemasterList.dbc");
{
// repairs entry for netherstorm - should be moved to SQL
if (BattlemasterListEntry const* bmEntry = sBattlemasterListStore.LookupEntry(32)) // random battleground
{
BattlemasterListEntry* randomBg = new BattlemasterListEntry(*bmEntry); // easier time dealing with it in code
randomBg->minLevel = 10;
randomBg->maxLevel = MAX_LEVEL_WOTLK;
sBattlemasterListStore.EraseEntry(32);
sBattlemasterListStore.InsertEntry(randomBg, 32);
}
}
LoadDBC(availableDbcLocales, bar, bad_dbc_files, sBarberShopStyleStore, dbcPath, "BarberShopStyle.dbc");
LoadDBC(availableDbcLocales, bar, bad_dbc_files, sCharStartOutfitStore, dbcPath, "CharStartOutfit.dbc");
LoadDBC(availableDbcLocales, bar, bad_dbc_files, sCharTitlesStore, dbcPath, "CharTitles.dbc");
Expand Down

0 comments on commit e6cf8cb

Please sign in to comment.