Core/Instances: Use level requirements from MapDifficultyXCondition.db2 instead of access_requirement db table

Port From (https://github.com/TrinityCore/TrinityCore/commit/3afed1788a81fe65ee414c590936be65d69f9314)
This commit is contained in:
hondacrx
2021-01-03 15:35:13 -05:00
parent bcd18b8f26
commit 9e8b56d16e
7 changed files with 83 additions and 23 deletions
@@ -690,6 +690,11 @@ namespace Framework.Database
"ItemContextPickerID, Flags, ContentTuningID, MapID FROM map_difficulty");
PrepareStatement(HotfixStatements.SEL_MAP_DIFFICULTY_LOCALE, "SELECT ID, Message_lang FROM map_difficulty_locale WHERE locale = ?");
// MapDifficultyXCondition.db2
PrepareStatement(HotfixStatements.SEL_MAP_DIFFICULTY_X_CONDITION, "SELECT ID, FailureDescription, PlayerConditionID, OrderIndex, MapDifficultyID" +
" FROM map_difficulty_x_condition");
PrepareStatement(HotfixStatements.SEL_MAP_DIFFICULTY_X_CONDITION_LOCALE, "SELECT ID, FailureDescription_lang FROM map_difficulty_x_condition_locale WHERE locale = ?");
// ModifierTree.db2
PrepareStatement(HotfixStatements.SEL_MODIFIER_TREE, "SELECT ID, Parent, Operator, Amount, Type, Asset, SecondaryAsset, TertiaryAsset FROM modifier_tree");
@@ -1487,6 +1492,9 @@ namespace Framework.Database
SEL_MAP_DIFFICULTY,
SEL_MAP_DIFFICULTY_LOCALE,
SEL_MAP_DIFFICULTY_X_CONDITION,
SEL_MAP_DIFFICULTY_X_CONDITION_LOCALE,
SEL_MODIFIER_TREE,
SEL_MOUNT,