mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-04 19:43:48 +00:00
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
|
||||
|
||||
#
|
||||
# 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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user