feat(Core/Config): Allow disable points of interest for quests (#14501)
This commit is contained in:
@@ -3803,6 +3803,14 @@ JoinBGAndLFG.Enable = 0
|
|||||||
|
|
||||||
LeaveGroupOnLogout.Enabled = 1
|
LeaveGroupOnLogout.Enabled = 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# QuestPOI.Enabled
|
||||||
|
# Description: Show points of interest on the map
|
||||||
|
# Default: 1 - Enabled
|
||||||
|
# 0 - Disabled
|
||||||
|
|
||||||
|
QuestPOI.Enabled = 1
|
||||||
|
|
||||||
#
|
#
|
||||||
# ChangeFaction.MaxMoney
|
# ChangeFaction.MaxMoney
|
||||||
# Description: Maximum amount of gold allowed on the character to perform a faction change.
|
# Description: Maximum amount of gold allowed on the character to perform a faction change.
|
||||||
|
|||||||
@@ -7743,6 +7743,13 @@ void ObjectMgr::LoadPointsOfInterest()
|
|||||||
|
|
||||||
void ObjectMgr::LoadQuestPOI()
|
void ObjectMgr::LoadQuestPOI()
|
||||||
{
|
{
|
||||||
|
if (!sWorld->getBoolConfig(CONFIG_QUEST_POI_ENABLED))
|
||||||
|
{
|
||||||
|
LOG_INFO("server.loading", ">> Loaded 0 quest POI definitions. Disabled by config.");
|
||||||
|
LOG_INFO("server.loading", " ");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
uint32 oldMSTime = getMSTime();
|
uint32 oldMSTime = getMSTime();
|
||||||
|
|
||||||
_questPOIStore.clear(); // need for reload case
|
_questPOIStore.clear(); // need for reload case
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ enum WorldBoolConfigs
|
|||||||
CONFIG_ALLOW_JOIN_BG_AND_LFG,
|
CONFIG_ALLOW_JOIN_BG_AND_LFG,
|
||||||
CONFIG_MISS_CHANCE_MULTIPLIER_ONLY_FOR_PLAYERS,
|
CONFIG_MISS_CHANCE_MULTIPLIER_ONLY_FOR_PLAYERS,
|
||||||
CONFIG_LEAVE_GROUP_ON_LOGOUT,
|
CONFIG_LEAVE_GROUP_ON_LOGOUT,
|
||||||
|
CONFIG_QUEST_POI_ENABLED,
|
||||||
CONFIG_VMAP_BLIZZLIKE_PVP_LOS,
|
CONFIG_VMAP_BLIZZLIKE_PVP_LOS,
|
||||||
CONFIG_OBJECT_SPARKLES,
|
CONFIG_OBJECT_SPARKLES,
|
||||||
CONFIG_LOW_LEVEL_REGEN_BOOST,
|
CONFIG_LOW_LEVEL_REGEN_BOOST,
|
||||||
|
|||||||
@@ -1279,6 +1279,8 @@ void World::LoadConfigSettings(bool reload)
|
|||||||
|
|
||||||
m_bool_configs[CONFIG_LEAVE_GROUP_ON_LOGOUT] = sConfigMgr->GetOption<bool>("LeaveGroupOnLogout.Enabled", true);
|
m_bool_configs[CONFIG_LEAVE_GROUP_ON_LOGOUT] = sConfigMgr->GetOption<bool>("LeaveGroupOnLogout.Enabled", true);
|
||||||
|
|
||||||
|
m_bool_configs[CONFIG_QUEST_POI_ENABLED] = sConfigMgr->GetOption<bool>("QuestPOI.Enabled", true);
|
||||||
|
|
||||||
m_int_configs[CONFIG_CHANGE_FACTION_MAX_MONEY] = sConfigMgr->GetOption<uint32>("ChangeFaction.MaxMoney", 0);
|
m_int_configs[CONFIG_CHANGE_FACTION_MAX_MONEY] = sConfigMgr->GetOption<uint32>("ChangeFaction.MaxMoney", 0);
|
||||||
|
|
||||||
///- Read the "Data" directory from the config file
|
///- Read the "Data" directory from the config file
|
||||||
|
|||||||
Reference in New Issue
Block a user