feat(Core/Config): Allow disable points of interest for quests (#14501)

This commit is contained in:
Revision
2023-01-05 00:30:57 +01:00
committed by GitHub
parent 28d190c82c
commit 1c523bd611
4 changed files with 18 additions and 0 deletions

View File

@@ -3803,6 +3803,14 @@ JoinBGAndLFG.Enable = 0
LeaveGroupOnLogout.Enabled = 1
#
# QuestPOI.Enabled
# Description: Show points of interest on the map
# Default: 1 - Enabled
# 0 - Disabled
QuestPOI.Enabled = 1
#
# ChangeFaction.MaxMoney
# Description: Maximum amount of gold allowed on the character to perform a faction change.

View File

@@ -7743,6 +7743,13 @@ void ObjectMgr::LoadPointsOfInterest()
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();
_questPOIStore.clear(); // need for reload case

View File

@@ -174,6 +174,7 @@ enum WorldBoolConfigs
CONFIG_ALLOW_JOIN_BG_AND_LFG,
CONFIG_MISS_CHANCE_MULTIPLIER_ONLY_FOR_PLAYERS,
CONFIG_LEAVE_GROUP_ON_LOGOUT,
CONFIG_QUEST_POI_ENABLED,
CONFIG_VMAP_BLIZZLIKE_PVP_LOS,
CONFIG_OBJECT_SPARKLES,
CONFIG_LOW_LEVEL_REGEN_BOOST,

View File

@@ -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_QUEST_POI_ENABLED] = sConfigMgr->GetOption<bool>("QuestPOI.Enabled", true);
m_int_configs[CONFIG_CHANGE_FACTION_MAX_MONEY] = sConfigMgr->GetOption<uint32>("ChangeFaction.MaxMoney", 0);
///- Read the "Data" directory from the config file