refactor(Core/DB/playercreateinfo_spell_custom): Load empty (#10595)

This commit is contained in:
Kitzunu
2022-02-14 20:21:56 +01:00
committed by GitHub
parent a4ecea2ae4
commit 3501ceb710
5 changed files with 7 additions and 475 deletions

View File

@@ -11491,7 +11491,7 @@ void Player::resetSpells()
void Player::LearnCustomSpells()
{
if (!sWorld->getBoolConfig(CONFIG_START_ALL_SPELLS))
if (!sWorld->getBoolConfig(CONFIG_START_CUSTOM_SPELLS))
{
return;
}

View File

@@ -126,7 +126,7 @@ enum WorldBoolConfigs
CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN,
CONFIG_VMAP_INDOOR_CHECK,
CONFIG_PET_LOS,
CONFIG_START_ALL_SPELLS,
CONFIG_START_CUSTOM_SPELLS,
CONFIG_START_ALL_EXPLORED,
CONFIG_START_ALL_REP,
CONFIG_ALWAYS_MAXSKILL,

View File

@@ -1294,7 +1294,7 @@ void World::LoadConfigSettings(bool reload)
LOG_INFO("server.loading", "WORLD: VMap support included. LineOfSight:{}, getHeight:{}, indoorCheck:{} PetLOS:{}", enableLOS, enableHeight, enableIndoor, enablePetLOS);
m_bool_configs[CONFIG_PET_LOS] = sConfigMgr->GetOption<bool>("vmap.petLOS", true);
m_bool_configs[CONFIG_START_ALL_SPELLS] = sConfigMgr->GetOption<bool>("PlayerStart.AllSpells", false);
m_bool_configs[CONFIG_START_CUSTOM_SPELLS] = sConfigMgr->GetOption<bool>("PlayerStart.CustomSpells", false);
m_int_configs[CONFIG_HONOR_AFTER_DUEL] = sConfigMgr->GetOption<int32>("HonorPointsAfterDuel", 0);
m_bool_configs[CONFIG_START_ALL_EXPLORED] = sConfigMgr->GetOption<bool>("PlayerStart.MapsExplored", false);
m_bool_configs[CONFIG_START_ALL_REP] = sConfigMgr->GetOption<bool>("PlayerStart.AllReputation", false);

View File

@@ -3215,15 +3215,13 @@ ItemDelete.ItemLevel = 80
PlayerStart.AllReputation = 0
#
# PlayerStart.AllSpells
# Description: If enabled, players will start with all their class spells (not talents).
# You must populate playercreateinfo_spell_custom table with the spells you
# want, or this will not work! The table has data for all classes / races up
# to TBC expansion.
# PlayerStart.CustomSpells
# Description: If enabled, players will start with custom spells defined in
# playercreateinfo_spell_custom table.
# Default: 0 - (Disabled)
# 1 - (Enabled)
PlayerStart.AllSpells = 0
PlayerStart.CustomSpells = 0
#
# PlayerStart.MapsExplored