refactor(Core/Config): Change PlayerStart.AllSpells to .CustomSpells (#4345)
* Change PlayerStart.AllSpells to .CustomSpells Remove wrong info regarding the playercreateinfo_spell_custom table. Change the config flags name to match its purpose. * Update src/server/worldserver/worldserver.conf.dist Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> * Update src/server/game/World/World.cpp Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> * Update src/server/game/World/World.cpp
This commit is contained in:
@@ -1279,9 +1279,7 @@ void World::LoadConfigSettings(bool reload)
|
|||||||
sLog->outString("WORLD: VMap support included. LineOfSight:%i, getHeight:%i, indoorCheck:%i PetLOS:%i", enableLOS, enableHeight, enableIndoor, enablePetLOS);
|
sLog->outString("WORLD: VMap support included. LineOfSight:%i, getHeight:%i, indoorCheck:%i PetLOS:%i", enableLOS, enableHeight, enableIndoor, enablePetLOS);
|
||||||
|
|
||||||
m_bool_configs[CONFIG_PET_LOS] = sConfigMgr->GetBoolDefault("vmap.petLOS", true);
|
m_bool_configs[CONFIG_PET_LOS] = sConfigMgr->GetBoolDefault("vmap.petLOS", true);
|
||||||
m_bool_configs[CONFIG_START_ALL_SPELLS] = sConfigMgr->GetBoolDefault("PlayerStart.AllSpells", false);
|
m_bool_configs[CONFIG_START_ALL_SPELLS] = sConfigMgr->GetBoolDefault("PlayerStart.CustomSpells", false);
|
||||||
if (m_bool_configs[CONFIG_START_ALL_SPELLS])
|
|
||||||
sLog->outString("WORLD: WARNING: PlayerStart.AllSpells enabled - may not function as intended!");
|
|
||||||
m_int_configs[CONFIG_HONOR_AFTER_DUEL] = sConfigMgr->GetIntDefault("HonorPointsAfterDuel", 0);
|
m_int_configs[CONFIG_HONOR_AFTER_DUEL] = sConfigMgr->GetIntDefault("HonorPointsAfterDuel", 0);
|
||||||
m_bool_configs[CONFIG_START_ALL_EXPLORED] = sConfigMgr->GetBoolDefault("PlayerStart.MapsExplored", false);
|
m_bool_configs[CONFIG_START_ALL_EXPLORED] = sConfigMgr->GetBoolDefault("PlayerStart.MapsExplored", false);
|
||||||
m_bool_configs[CONFIG_START_ALL_REP] = sConfigMgr->GetBoolDefault("PlayerStart.AllReputation", false);
|
m_bool_configs[CONFIG_START_ALL_REP] = sConfigMgr->GetBoolDefault("PlayerStart.AllReputation", false);
|
||||||
|
|||||||
@@ -3241,15 +3241,13 @@ ItemDelete.ItemLevel = 80
|
|||||||
PlayerStart.AllReputation = 0
|
PlayerStart.AllReputation = 0
|
||||||
|
|
||||||
#
|
#
|
||||||
# PlayerStart.AllSpells
|
# PlayerStart.CustomSpells
|
||||||
# Description: If enabled, players will start with all their class spells (not talents).
|
# Description: If enabled, players will ignore spells from playercreateinfo_spellstart at character
|
||||||
# You must populate playercreateinfo_spell_custom table with the spells you
|
# creation and will start with spells from the table playercreateinfo_spell_custom instead.
|
||||||
# want, or this will not work! The table has data for all classes / races up
|
|
||||||
# to TBC expansion.
|
|
||||||
# Default: 0 - (Disabled)
|
# Default: 0 - (Disabled)
|
||||||
# 1 - (Enabled)
|
# 1 - (Enabled)
|
||||||
|
|
||||||
PlayerStart.AllSpells = 0
|
PlayerStart.CustomSpells = 0
|
||||||
|
|
||||||
#
|
#
|
||||||
# PlayerStart.MapsExplored
|
# PlayerStart.MapsExplored
|
||||||
|
|||||||
Reference in New Issue
Block a user