feat(Core/Conf): allow to change the cost of the guild bank tabs (#4240)

This commit is contained in:
Francesco Borzì
2021-01-16 01:35:52 +01:00
committed by GitHub
parent c3b2bd10de
commit 19d474b338
4 changed files with 37 additions and 7 deletions

View File

@@ -75,17 +75,17 @@ inline uint32 _GetGuildBankTabPrice(uint8 tabId)
switch (tabId)
{
case 0:
return 100;
return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_0);
case 1:
return 250;
return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_1);
case 2:
return 500;
return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_2);
case 3:
return 1000;
return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_3);
case 4:
return 2500;
return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_4);
case 5:
return 5000;
return sWorld->getIntConfig(CONFIG_GUILD_BANK_TAB_COST_5);
default:
return 0;
}
@@ -1484,7 +1484,7 @@ void Guild::HandleBuyBankTab(WorldSession* session, uint8 tabId)
if (tabId != _GetPurchasedTabsSize())
return;
uint32 tabCost = _GetGuildBankTabPrice(tabId) * GOLD;
uint32 tabCost = _GetGuildBankTabPrice(tabId);
if (!tabCost)
return;