Reworked Presets and fixed bugs

This commit is contained in:
Horyoshi
2026-03-09 13:40:57 +01:00
parent f6c8e17c58
commit e720451fe4
5 changed files with 521 additions and 1088 deletions
-170
View File
@@ -1,170 +0,0 @@
classPresets = {
["Rogue"] = {
{ raid = "Emerald Sanctum", id = {13452, 3825, 9206, 3387, 7676, 12451, 12820, 8412, 13458, 20844, 18262, 10646, 61675, 14530, 51711} },
{ raid = "Molten Core", id = {13452, 3825, 9206, 7676, 12451, 12820, 8412, 13457, 14530, 13446, 61675, 12404, 18262, 13461} },
{ raid = "Blackwing Lair", id = {13452, 3825, 9206, 3387, 5634, 7676, 12451, 12820, 8412, 13457, 10646, 61675, 14530, 13446, 20844, 18262, 20079, 51711, 13180} },
{ raid = "Temple of Ahn'Qiraj", id = {13452, 3825, 9206, 3387, 7676, 12451, 12820, 8412, 13458, 18262, 20844, 20079, 51711, 61675, 10646, 13446, 14530, 61225, 21151} },
{ raid = "Naxxramas", id = {13452, 3825, 9206, 3386, 5634, 7676, 12451, 12820, 8412, 13457, 13456, 13458, 13459, 23122, 18262, 20844, 13510, 61675, 13446, 12457, 20079, 51711, 21151, 13180} }
},
["Marksmanship Hunter"] = {
{ raid = "Emerald Sanctum", id = {13452, 20007, 12460, 8412, 61675, 13444, 13446, 60976} },
{ raid = "Molten Core", id = {20007, 12460, 8412, 61675, 13444, 13446, 13457, 13452} },
{ raid = "Blackwing Lair", id = {20007, 12460, 8412, 13457, 13444, 13446, 61675, 13452, 13180} },
{ raid = "Temple of Ahn'Qiraj", id = {13452, 20007, 12460, 8412, 13458, 60976, 61675, 13444, 13446} },
{ raid = "Naxxramas", id = {13452, 3386, 20007, 12460, 8412, 12457, 13456, 13457, 13458, 13459, 13444, 13446, 61675, 60976, 20079, 23122, 13180} }
},
["Survival Hunter"] = {
{ raid = "Emerald Sanctum", id = {13452, 3825, 20007, 12460, 12820, 8412, 9206} },
{ raid = "Molten Core", id = {13452, 3825, 9206, 20007, 12460, 8412} },
{ raid = "Blackwing Lair", id = {13452, 3825, 20007, 12460, 12820, 8412, 9206, 13180} },
{ raid = "Temple of Ahn'Qiraj", id = {13452, 3825, 9206, 20007, 12460, 12820, 8412} },
{ raid = "Naxxramas", id = {13452, 3825, 9206, 3386, 20007, 12460, 12820, 8412, 13180} }
},
["Protection Warrior"] = {
{ raid = "Emerald Sanctum", id = {13445, 3825, 9206, 13455, 3387, 10646, 12451, 12820, 8412, 8410, 10305} },
{ raid = "Molten Core", id = {13445, 3825, 9206, 3387, 10646, 12451, 12820, 8412, 8410, 10305} },
{ raid = "Blackwing Lair", id = {13445, 3825, 9206, 13455, 3387, 5634, 9030, 10646, 12451, 12820, 8412, 8410, 10305} },
{ raid = "Temple of Ahn'Qiraj", id = {13445, 3825, 9206, 13455, 3387, 10646, 12451, 12820, 8412, 8410, 13510, 10305} },
{ raid = "Naxxramas", id = {13445, 3825, 9206, 13455, 13442, 3386, 3387, 5634, 10646, 12451, 12820, 8412, 8410, 13510, 10305} }
},
["Fury Warrior"] = {
{ raid = "Emerald Sanctum", id = {12451, 12820, 8410, 20079, 18262, 10646} },
{ raid = "Molten Core", id = {12451, 12820, 8410, 20079, 18262, 10646} },
{ raid = "Blackwing Lair", id = {12451, 12820, 8410, 20079, 18262, 10646} },
{ raid = "Temple of Ahn'Qiraj", id = {12451, 12820, 8410, 20079, 18262, 10646} },
{ raid = "Naxxramas", id = {12451, 12820, 8410, 20079, 18262, 10646} }
},
["Fire Mage"] = {
{ raid = "Emerald Sanctum", id = {13454, 61224} },
{ raid = "Molten Core", id = {13454, 61224} },
{ raid = "Blackwing Lair", id = {13454, 61224} },
{ raid = "Temple of Ahn'Qiraj", id = {13454, 61224, 21546} },
{ raid = "Naxxramas", id = {13454, 21546, 20079, 20749, 60977, 13512, 61224} }
},
["Frost Mage"] = {
{ raid = "Emerald Sanctum", id = {13454, 61224} },
{ raid = "Molten Core", id = {13454, 61224} },
{ raid = "Blackwing Lair", id = {13454, 61224} },
{ raid = "Temple of Ahn'Qiraj", id = {13454, 61224} },
{ raid = "Naxxramas", id = {13454, 20079, 20749, 60977, 13512, 61224} }
},
["Arcane Mage"] = {
{ raid = "Emerald Sanctum", id = {61224, 13454} },
{ raid = "Molten Core", id = {13454, 61224} },
{ raid = "Blackwing Lair", id = {13454, 61224} },
{ raid = "Temple of Ahn'Qiraj", id = {13454, 61224} },
{ raid = "Naxxramas", id = {13454, 20079, 20749, 60977, 13512, 61224} }
},
["Shadow Warlock"] = {
{ raid = "Emerald Sanctum", id = {13454, 20079, 20749, 61224, 60978, 61225, 61675, 13458} },
{ raid = "Molten Core", id = {13454, 20079, 60978, 61224, 61675} },
{ raid = "Blackwing Lair", id = {13454, 20079, 20749, 61224, 10646, 60978, 13457, 3387, 61675} },
{ raid = "Temple of Ahn'Qiraj", id = {20079, 20749, 10646, 61224, 60978, 13461, 13459, 13458, 61675, 61225, 3387, 13454} },
{ raid = "Naxxramas", id = {13454, 9264, 3386, 20079, 20749, 10646, 20004, 60977, 13512, 61224, 13456, 13457, 13459, 13458, 23123, 3387, 61675, 12457, 61423} }
},
["Fire Warlock"] = {
{ raid = "Emerald Sanctum", id = {13454, 20079, 20749, 20004, 60977, 13458, 61224, 61675} },
{ raid = "Molten Core", id = {13454, 20079, 60977, 61224, 13457, 61675} },
{ raid = "Blackwing Lair", id = {13454, 20079, 20749, 60977, 3387, 13457, 13459, 10646, 61675} },
{ raid = "Temple of Ahn'Qiraj", id = {13454, 20079, 20749, 10646, 20004, 60977, 84041, 13512, 13458, 13459, 13461, 61224, 61225, 3387, 61675} },
{ raid = "Naxxramas", id = {13454, 21546, 3386, 20079, 20749, 10646, 20004, 60977, 13512, 13456, 13457, 13458, 13459, 23123, 61224, 3387, 61423, 12457} }
},
["Shadow Priest"] = {
{ raid = "Emerald Sanctum", id = {9264, 20079, 20749, 60977, 84041} },
{ raid = "Molten Core", id = {9264, 20079, 20749, 60977, 84041} },
{ raid = "Blackwing Lair", id = {9264, 20079, 20749, 60977, 84041} },
{ raid = "Temple of Ahn'Qiraj", id = {9264, 20079, 20749, 60977, 84041} },
{ raid = "Naxxramas", id = {9264, 3386, 20079, 20749, 60977, 84041} }
},
["Elemental Shaman"] = {
{ raid = "Emerald Sanctum", id = {13454, 50237, 21546, 20007, 20749, 10646, 60977, 84041} },
{ raid = "Molten Core", id = {13454, 50237, 21546, 20007, 20749, 10646, 60977, 84041} },
{ raid = "Blackwing Lair", id = {13454, 50237, 21546, 20007, 20749, 10646, 60977, 84041} },
{ raid = "Temple of Ahn'Qiraj", id = {13454, 50237, 21546, 20007, 20749, 10646, 60977, 84041, 13512} },
{ raid = "Naxxramas", id = {13454, 50237, 21546, 3386, 20007, 20749, 10646, 60977, 84041, 13512} }
},
["Restoration Shaman"] = {
{ raid = "Emerald Sanctum", id = {13511, 20007, 20748, 60977, 60978} },
{ raid = "Molten Core", id = {13511, 20007, 20748, 60977, 60978} },
{ raid = "Blackwing Lair", id = {13511, 20007, 20748, 60977, 60978} },
{ raid = "Temple of Ahn'Qiraj", id = {13511, 20007, 20748, 60977, 60978} },
{ raid = "Naxxramas", id = {13511, 3386, 20007, 20748, 60977, 60978} }
},
["Moonkin DPS Druid"] = {
{ raid = "Emerald Sanctum", id = {13454, 20079, 20749, 10646, 61675, 13444, 14530, 61224, 60977, 61423, 84041} },
{ raid = "Molten Core", id = {13454, 20079, 10646, 84041, 61423, 61675, 13444, 14530, 61224, 60977, 13461, 13457} },
{ raid = "Blackwing Lair", id = {13454, 20079, 10646, 60977, 61224, 61423, 61675, 13444, 14530, 20749, 84041} },
{ raid = "Temple of Ahn'Qiraj", id = {13454, 20079, 20749, 10646, 60977, 61675, 13444, 14530, 13458, 61423, 61224, 84041, 13512, 13511} },
{ raid = "Naxxramas", id = {13454, 20079, 20749, 10646, 13457, 13456, 13459, 13458, 61675, 13444, 12457, 60977, 61224, 61423, 13511, 14530, 84041, 13512} }
},
["Restoration Druid"] = {
{ raid = "Emerald Sanctum", id = {20007, 20748, 10646, 61675, 13444, 14530, 13931, 8423} },
{ raid = "Molten Core", id = {20007, 13457, 13461, 20079, 13444, 61675, 14530, 13931, 10646, 8423} },
{ raid = "Blackwing Lair", id = {20007, 10646, 13457, 13931, 61675, 13444, 14530, 8423} },
{ raid = "Temple of Ahn'Qiraj", id = {20007, 20748, 10646, 20079, 61675, 61225, 13444, 13931, 14530, 13458, 8423} },
{ raid = "Naxxramas", id = {13511, 20007, 20748, 10646, 13931, 13444, 20079, 13459, 13458, 13456, 13457, 61675, 14530, 12457, 8423} }
},
["Cat DPS Druid"] = {
{ raid = "Emerald Sanctum", id = {13452, 3825, 9206, 12451, 12820} },
{ raid = "Molten Core", id = {13452, 3825, 9206, 12451, 12820} },
{ raid = "Blackwing Lair", id = {13452, 3825, 9206, 12451, 12820} },
{ raid = "Temple of Ahn'Qiraj", id = {13452, 3825, 9206, 12451, 12820} },
{ raid = "Naxxramas", id = {13452, 3825, 9206, 3386, 12451, 12820} }
},
["Holy Paladin"] = {
{ raid = "Emerald Sanctum", id = {} },
{ raid = "Molten Core", id = {} },
{ raid = "Blackwing Lair", id = {} },
{ raid = "Temple of Ahn'Qiraj", id = {} },
{ raid = "Naxxramas", id = {} }
},
["Holy Priest"] = {
{ raid = "Emerald Sanctum", id = {13511, 20748, 60977, 60978} },
{ raid = "Molten Core", id = {13511, 20748, 60977, 60978} },
{ raid = "Blackwing Lair", id = {13511, 20748, 60977, 60978} },
{ raid = "Temple of Ahn'Qiraj", id = {13511, 20748, 60977, 60978} },
{ raid = "Naxxramas", id = {13511, 3386, 20748, 60977, 60978} }
},
["Discipline Priest"] = {
{ raid = "Emerald Sanctum", id = {13511, 20748, 60977, 60978} },
{ raid = "Molten Core", id = {13511, 20748, 60977, 60978} },
{ raid = "Blackwing Lair", id = {13511, 20748, 60977, 60978} },
{ raid = "Temple of Ahn'Qiraj", id = {13511, 20748, 60977, 60978} },
{ raid = "Naxxramas", id = {13511, 3386, 20748, 60977, 60978} }
},
["Bear Tank Druid"] = {
{ raid = "Emerald Sanctum", id = {13445, 3825, 13455, 10646, 13510, 10305} },
{ raid = "Molten Core", id = {13445, 3825, 10646, 13510, 10305} },
{ raid = "Blackwing Lair", id = {13445, 3825, 13455, 10646, 13510, 10305} },
{ raid = "Temple of Ahn'Qiraj", id = {13445, 3825, 13455, 10646, 13510, 10305} },
{ raid = "Naxxramas", id = {13445, 3825, 13455, 3386, 10646, 13510, 10305} }
},
["Enhancement Shaman"] = {
{ raid = "Emerald Sanctum", id = {12451, 12820, 8410, 20079, 18262} },
{ raid = "Molten Core", id = {12451, 12820, 8410, 20079, 18262} },
{ raid = "Blackwing Lair", id = {12451, 12820, 8410, 20079, 18262} },
{ raid = "Temple of Ahn'Qiraj", id = {12451, 12820, 8410, 20079, 18262} },
{ raid = "Naxxramas", id = {12451, 12820, 8410, 20079, 18262} }
},
["Enhancement Tank Shaman"] = {
{ raid = "Emerald Sanctum", id = {13445, 3825, 13455, 10646, 10305} },
{ raid = "Molten Core", id = {13445, 3825, 10646, 10305} },
{ raid = "Blackwing Lair", id = {13445, 3825, 13455, 10646, 10305} },
{ raid = "Temple of Ahn'Qiraj", id = {13445, 3825, 13455, 10646, 10305} },
{ raid = "Naxxramas", id = {13445, 3825, 13455, 3386, 10646, 10305} }
},
["Retribution Paladin"] = {
{ raid = "Emerald Sanctum", id = {} },
{ raid = "Molten Core", id = {} },
{ raid = "Blackwing Lair", id = {} },
{ raid = "Temple of Ahn'Qiraj", id = {} },
{ raid = "Naxxramas", id = {} }
},
["Protection Paladin"] = {
{ raid = "Emerald Sanctum", id = {} },
{ raid = "Molten Core", id = {} },
{ raid = "Blackwing Lair", id = {} },
{ raid = "Temple of Ahn'Qiraj", id = {} },
{ raid = "Naxxramas", id = {} }
}
}
+2 -3
View File
@@ -2,8 +2,8 @@
## Title: |cff00ff00Consumes Manager|r |cff808080[Horyoshi]|r
## Notes: Easily track and manage your consumables, food buffs, and more across your inventory, bank, and mail, while supporting multiple characters and accounts.
## Author: Horyoshi
## Version: 2.1.5
## SavedVariables: ConsumesManager_Options, ConsumesManager_SelectedItems, ConsumesManager_Data
## Version: 2.2.0
## SavedVariables: ConsumesManager_Options, ConsumesManager_SelectedItems, ConsumesManager_Data, ConsumesManager_Presets
libs\LibStub\LibStub.lua
libs\LibCompress\LibCompress.lua
@@ -12,5 +12,4 @@ libs\LzwLib-1.0\LzwLib-1.0.lua
Main.lua
Itemlist.lua
Classpresets.lua
minimap_icon.xml
+1
View File
@@ -18,6 +18,7 @@ consumablesCategories = {
{ id = 9264, name = "Elixir of Shadow Power", mats = {"3x Ghost Mushroom", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_46", description = "Increases spell shadow damage by up to 40 for 30 minutes." },
{ id = 61224, name = "Dreamshard Elixir", mats = {"1x Dream Dust", "1x Small Dream Shard", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_12", description = "Grants 2% spell critical and 15 spell power for 1 hour." },
{ id = 9224, name = "Elixir of Demonslaying", mats = {"1x Gromsblood", "1x Ghost Mushroom", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_27", description = "Increases attack power by 265 against demons for 5 min." },
{ id = 55048, name = "Elixir of Greater Arcane Power", mats = {"3x Purple Lotus", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_32", description = "Increases arcane spell damage by up to 40 for 1 hour." },
},
["Flasks"] = {
{ id = 13513, name = "Flask of Chromatic Resistance", mats = {"30x Icecap", "10x Mountain Silversage", "1x Black Lotus", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_48", description = "Increases your resistance to all schools of magic by 25 for 2 hours." },
+518 -827
View File
File diff suppressed because it is too large Load Diff
-88
View File
@@ -9,91 +9,3 @@ Created with ♥ by Horyoshi for World of Warcraft 1.12 **Turtle WoW**
Unzip the file and place the 'ConsumesManager' folder in your /Interface/AddOns folder. Remove '-master' from the folder name!
Click the mini-map icon to open/close the Tracker. For a detailled overview watch the tutorial video on top.
## Changelog
**2.1.0**
```
- Added a new feature which makes the addon crossfaction compatible
```
**2.0.4**
```
- Fixed a bug where the count of the consumes in your bank would reset
- Added magic resistance and invisibility potions
```
**2.0.3**
```
- Fixed a bug where multi-account characters where not selected by default
```
**2.0.2**
```
- Fixed a compatibility issue with other addons where the bank would not scan
- Added a delay to the scanning functions to avoid performance issues or client crashes
- Fixed a UI bug in the syncing progress bar
- Added compatibility with SuperWoW for consumables that have charges
```
**2.0.1**
```
- Fixed a compatibility issue with Onebag
- Added some food buffs to the item list
```
**2.0**
```
- Added a new feature which allows syncing between multiple accounts (in beta)
- Added new consumes to the itemlist
- Added materials or objectives needed to make the consumes in the tooltips
- Fixed some wrong ID's in the itemlist
- Increased Performance in item scanning
- Added class color codes to the preset lists and ordered the items better
```
**1.8**
```
- Added new consumables and fixed some mismatched icons
- Added a new feature that shows a list of must-have consumables per class per raid
- Fixed an issue where settings did not save
- Disables the Items and Presets window if the character has not been scanned yet
- Fixed an issue where disabled characters corrupted the Data table
```
**1.7**
```
- Added a reset button to wipe all settings and caches
- Added buttons to order by name or amount in the tracker window
```
**V1.6**
```
- Added more items to the consumables list
- UI changes to the tabs
- Added an option to show/hide a 'use'
- Added an option to show/hide categories
- Small UI fixes
```
**V1.5**
```
- Can now be updated via the Turtle WoW launcher
- Changed Addon name to: Consumes Manager
- Fixed general styling issues
- Added a 'Use' button for tracked consumables
- Added a select/deselect all button to the options
- Changed scanning to global instead of selected items only
```
<img width="680" alt="image" src="https://github.com/user-attachments/assets/07fbaeb2-fb67-463f-a743-a28db6d82adc">
**V1.4**
```
- Updated consumables list
- Fixed icons and ID's for all consumables
- Fixed an issue where the consumables counting could be a negative value
- Added a search filter in the options window
- Fixed general styling issues
- You can now close the addon window by pressing 'Esc'
```