feat(Core/Unit): Implement munching as a configurable option. (#19188)

* Init.

* Correct description.

* Adjust boolean to integer in config.
This commit is contained in:
Benjamin Jackson
2024-07-10 11:26:53 -04:00
committed by GitHub
parent 793f87fd61
commit 70eb920b10
4 changed files with 11 additions and 1 deletions
+1
View File
@@ -185,6 +185,7 @@ enum WorldBoolConfigs
CONFIG_STRICT_NAMES_RESERVED,
CONFIG_STRICT_NAMES_PROFANITY,
CONFIG_ALLOWS_RANK_MOD_FOR_PET_HEALTH,
CONFIG_MUNCHING_BLIZZLIKE,
BOOL_CONFIG_VALUE_COUNT
};
+2
View File
@@ -1282,6 +1282,8 @@ void World::LoadConfigSettings(bool reload)
_bool_configs[CONFIG_ALLOWS_RANK_MOD_FOR_PET_HEALTH] = sConfigMgr->GetOption<bool>("Pet.RankMod.Health", true);
_bool_configs[CONFIG_MUNCHING_BLIZZLIKE] = sConfigMgr->GetOption<bool>("MunchingBlizzlike.Enabled", true);
_int_configs[CONFIG_DAILY_RBG_MIN_LEVEL_AP_REWARD] = sConfigMgr->GetOption<uint32>("DailyRBGArenaPoints.MinLevel", 71);
_int_configs[CONFIG_AUCTION_HOUSE_SEARCH_TIMEOUT] = sConfigMgr->GetOption<uint32>("AuctionHouse.SearchTimeout", 1000);