fix(Core): Implement ACHIEVEMENT_CRITERIA_DATA_TYPE_S_ITEM_QUALITY (#12246)

* fix(Core): Implement ACHIEVEMENT_CRITERIA_DATA_TYPE_S_ITEM_QUALITY

* Missing DB values from TrinityCore

* Fix DELETE to include all added entries

* Fix AchievementCriteriaData validation

* Correctly check criteria data for receive item achievements
This commit is contained in:
ZhengPeiRu21
2022-07-07 10:45:50 -06:00
committed by GitHub
parent 2b6284d1c9
commit e21011c223
3 changed files with 45 additions and 1 deletions

View File

@@ -0,0 +1,25 @@
--
DELETE FROM `achievement_criteria_data` WHERE `criteria_id` IN (6140, 6141, 6142, 4768, 4769, 4770, 4771, 4772, 4773, 4774, 4775, 4776, 4777, 4778, 4779, 4780, 4781, 4782, 4783, 4784, 4785, 4786);
INSERT INTO `achievement_criteria_data` (`criteria_id`, `type`, `value1`, `value2`) VALUES
(6140, 25, 4, 0),
(6141, 25, 5, 0),
(6142, 25, 4, 0),
(4768, 25, 4, 0),
(4769, 25, 4, 0),
(4770, 25, 4, 0),
(4771, 25, 4, 0),
(4772, 25, 4, 0),
(4773, 25, 4, 0),
(4774, 25, 4, 0),
(4775, 25, 4, 0),
(4776, 25, 4, 0),
(4777, 25, 4, 0),
(4778, 25, 4, 0),
(4779, 25, 4, 0),
(4780, 25, 4, 0),
(4781, 25, 4, 0),
(4782, 25, 4, 0),
(4783, 25, 4, 0),
(4784, 25, 4, 0),
(4785, 25, 4, 0),
(4786, 25, 4, 0);