Update 1.8

- Added new consumables and fixed some missmatched 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
This commit is contained in:
Cinecom
2024-12-04 14:24:47 +01:00
parent dd183057ee
commit f45c4bc27f
4 changed files with 1685 additions and 480 deletions
+170
View File
@@ -0,0 +1,170 @@
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} },
{ raid = "Molten Core", id = {13445, 3825, 9206, 3387, 10646, 12451, 12820, 8412, 8410} },
{ raid = "Blackwing Lair", id = {13445, 3825, 9206, 13455, 3387, 5634, 9030, 10646, 12451, 12820, 8412, 8410} },
{ raid = "Temple of Ahn'Qiraj", id = {13445, 3825, 9206, 13455, 3387, 10646, 12451, 12820, 8412, 8410, 13510} },
{ raid = "Naxxramas", id = {13445, 3825, 9206, 13455, 13442, 3386, 3387, 5634, 10646, 12451, 12820, 8412, 8410, 13510} }
},
["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} },
{ 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} },
{ raid = "Molten Core", id = {13445, 3825, 10646, 13510} },
{ raid = "Blackwing Lair", id = {13445, 3825, 13455, 10646, 13510} },
{ raid = "Temple of Ahn'Qiraj", id = {13445, 3825, 13455, 10646, 13510} },
{ raid = "Naxxramas", id = {13445, 3825, 13455, 3386, 10646, 13510} }
},
["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} },
{ raid = "Molten Core", id = {13445, 3825, 10646} },
{ raid = "Blackwing Lair", id = {13445, 3825, 13455, 10646} },
{ raid = "Temple of Ahn'Qiraj", id = {13445, 3825, 13455, 10646} },
{ raid = "Naxxramas", id = {13445, 3825, 13455, 3386, 10646} }
},
["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 = {} }
}
}
+3 -2
View File
@@ -2,9 +2,10 @@
## Title: |cff00ff00Consumes Manager|r |cff808080[Horyoshi]|r
## Notes: Tracks and manages consumables across your inventory, bank and mail through multiple characters. Keeps track of how much consumes you have left.
## Author: Horyoshi
## Version: 1.7
## SavedVariables: ConsumesManager_Settings, ConsumesManager_Data
## Version: 1.8
## SavedVariables: ConsumesManager_Options, ConsumesManager_SelectedItems, ConsumesManager_Data
Main.lua
Itemlist.lua
Classpresets.lua
minimap_icon.xml
+24 -14
View File
@@ -13,16 +13,17 @@ consumablesCategories = {
{ id = 9206, name = "Elixir of Giants", texture = "Interface\\Icons\\INV_Potion_61", description = "Increases your Strength by 25 for 1 hour." },
{ id = 9179, name = "Elixir of Greater Intellect", texture = "Interface\\Icons\\INV_Potion_10", description = "Increases Intellect by 25 for 1 hour." },
{ id = 50237, name = "Elixir of Greater Nature Power", texture = "Interface\\Icons\\INV_Potion_22", description = "Increases nature spell damage by up to 55 for 1 hour." },
{ id = 21546, name = "Elixir of Greater Firepower", texture = "Interface\\Icons\\INV_Potion_60", description = "Increases spell fire damage by up to 40 for 1 hour." },
{ id = 3386, name = "Elixir of Poison Resistance", texture = "Interface\\Icons\\INV_Potion_12", description = "Imbiber is cured of up to four poisons up to level 60." },
{ id = 9264, name = "Elixir of Shadow Power", texture = "Interface\\Icons\\INV_Potion_46", description = "Increases spell shadow damage by up to 40 for 30 minutes." },
{ id = 61224, name = "Dreamshard Elixir", texture = "Interface\\Icons\\INV_Potion_12", description = " Grants 2% spell critical and 15 spell power for 1 hour." },
{ id = 61224, name = "Dreamshard Elixir", texture = "Interface\\Icons\\INV_Potion_12", description = "Grants 2% spell critical and 15 spell power for 1 hour." }
},
["Flasks"] = {
{ id = 13513, name = "Flask of Chromatic Resistance", texture = "Interface\\Icons\\INV_Potion_48", description = "Increases your resistance to all schools of magic by 25 for 2 hours." },
{ id = 13511, name = "Flask of Distilled Wisdom", texture = "Interface\\Icons\\INV_Potion_97", description = "Increases the player's maximum mana by 2000 for 2 hours." },
{ id = 13512, name = "Flask of Supreme Power", texture = "Interface\\Icons\\INV_Potion_41", description = " Increases damage done by magical spells and effects by up to 150 for 2 hours." },
{ id = 13512, name = "Flask of Supreme Power", texture = "Interface\\Icons\\INV_Potion_41", description = "Increases damage done by magical spells and effects by up to 150 for 2 hours." },
{ id = 13510, name = "Flask of the Titans", texture = "Interface\\Icons\\INV_Potion_62", description = "Increases the player's maximum health by 1200 for 2 hours." },
{ id = 13506, name = "Flask of Petrification", texture = "Interface\\Icons\\INV_Potion_26", description = "You turn to stone, protecting you from all physical attacks and spells for 60 sec." },
{ id = 13506, name = "Flask of Petrification", texture = "Interface\\Icons\\INV_Potion_26", description = "You turn to stone, protecting you from all physical attacks and spells for 60 sec." }
},
["Protection Potions"] = {
{ id = 13457, name = "Greater Fire Protection Potion", texture = "Interface\\Icons\\INV_Potion_24", description = "Absorbs 1950 to 3250 Fire damage for 1 hour." },
@@ -30,7 +31,7 @@ consumablesCategories = {
{ id = 13458, name = "Greater Nature Protection Potion", texture = "Interface\\Icons\\INV_Potion_22", description = "Absorbs 1950 to 3250 Nature damage for 1 hour." },
{ id = 13459, name = "Greater Shadow Protection Potion", texture = "Interface\\Icons\\INV_Potion_23", description = "Absorbs 1950 to 3250 Shadow damage for 1 hour." },
{ id = 13461, name = "Greater Arcane Protection Potion", texture = "Interface\\Icons\\INV_Potion_83", description = "Absorbs 1950 to 3250 Arcane damage for 1 hour." },
{ id = 13460, name = "Greater Holy Protection Potion", texture = "Interface\\Icons\\INV_Potion_09", description = "Absorbs 1950 to 3251 holy damage for 1 hour." },
{ id = 13460, name = "Greater Holy Protection Potion", texture = "Interface\\Icons\\INV_Potion_09", description = "Absorbs 1950 to 3251 holy damage for 1 hour." }
},
["Weapon Enhancements"] = {
{ id = 12404, name = "Dense Sharpening Stone", texture = "Interface\\Icons\\INV_Stone_SharpeningStone_05", description = "Increases weapon damage by 8 for 30 minutes." },
@@ -42,15 +43,17 @@ consumablesCategories = {
{ id = 23122, name = "Consecrated Sharpening Stone", texture = "Interface\\Icons\\inv_stone_sharpeningstone_02", description = "Increases melee attack power by 100 against undead for 30 minutes." },
{ id = 18262, name = "Elemental Sharpening Stone", texture = "Interface\\Icons\\INV_Stone_02", description = "Increases critical strike chance by 2% for 30 minutes." },
{ id = 8928, name = "Instant Poison VI", texture = "Interface\\Icons\\Ability_Poisons", description = "20% chance to inflict 112 to 149 Nature damage." },
{ id = 3776, name = "Crippling Poison II", texture = "Interface\\Icons\\INV_Potion_19", description = "30% chance to inflict the enemie, slowing their movement speed by 60% for 12 sec." },
{ id = 3776, name = "Crippling Poison II", texture = "Interface\\Icons\\INV_Potion_19", description = "30% chance to inflict the enemy, slowing their movement speed by 60% for 12 sec." },
{ id = 20844, name = "Deadly Poison V", texture = "Interface\\Icons\\Ability_Rogue_DualWeild", description = "30% chance of poisoning the enemy for 136 Nature damage over 12 sec. Stacks up to 5 times on a single target." },
{ id = 5763, name = "Mind-numbing Poison III", texture = "Interface\\Icons\\Spell_Nature_NullifyDisease", description = "20% chance of poisoning the enemy, increasing their casting time by 60% for 14 sec." },
{ id = 10922, name = "Wound Poison IV", texture = "Interface\\Icons\\Ability_PoisonSting", description = " 30% chance of poisoning the enemy, reducing all healing effects used on them by 135 for 15 sec. Stacks up to 5 times on a single target." }
{ id = 10922, name = "Wound Poison IV", texture = "Interface\\Icons\\Ability_PoisonSting", description = "30% chance of poisoning the enemy, reducing all healing effects used on them by 135 for 15 sec. Stacks up to 5 times on a single target." },
{ id = 12643, name = "Dense Weightstone", texture = "Interface\\Icons\\INV_stone_weightstone_05", description = "Increase the damage of a blunt weapon by 8 for 30 minutes." }
},
["Combat Potions"] = {
{ id = 13455, name = "Greater Stoneshield Potion", texture = "Interface\\Icons\\INV_Potion_69", description = "Increases armor by 2000 for 2 minutes." },
{ id = 13442, name = "Mighty Rage Potion", texture = "Interface\\Icons\\INV_Potion_41", description = "Restores 45 to 75 rage and increases Strength by 60 for 20 seconds." },
{ id = 20007, name = "Mageblood Potion", texture = "Interface\\Icons\\INV_Potion_45", description = "Regenerates 12 mana every 5 seconds for 1 hour." },
{ id = 61423, name = "Dreamtonic", texture = "Interface\\Icons\\INV_Potion_10", description = "Increases spell damage by up to 35 for 20 minutes." }
},
["Utility Items"] = {
{ id = 20008, name = "Living Action Potion", texture = "Interface\\Icons\\INV_Potion_07", description = "Removes movement impairing effects and grants immunity to them for 5 seconds." },
@@ -63,11 +66,13 @@ consumablesCategories = {
{ id = 10646, name = "Goblin Sapper Charge", texture = "Interface\\Icons\\spell_fire_selfdestruct", description = "Deals 450-751 Fire damage to enemies within 10 yards, also damages you." },
{ id = 61675, name = "Nordanaar Herbal Tea", texture = "Interface\\Icons\\INV_Drink_Milk_05", description = "Restores 525 to 875 health and 810 to 1350 mana." },
{ id = 13462, name = "Purification Potion", texture = "Interface\\Icons\\INV_Potion_31", description = "Attempts to remove one Curse, one Disease and one Poison from the Imbiber." },
{ id = 13444, name = "Major Mana Potion", texture = "Interface\\Icons\\INV_Potion_76", description = "Restores 1350 to 2251 mana." },
{ id = 13446, name = "Major Healing Potion", texture = "Interface\\Icons\\INV_Potion_54", description = "Restores 1050 to 1751 health." },
{ id = 13444, name = "Major Mana Potion", texture = "Interface\\Icons\\INV_Potion_76", description = "Restores 1350 to 2251 mana." },
{ id = 13446, name = "Major Healing Potion", texture = "Interface\\Icons\\INV_Potion_54", description = "Restores 1050 to 1751 health." },
{ id = 7676, name = "Thistle Tea", texture = "Interface\\Icons\\INV_Drink_Milk_05", description = "Instantly restores 100 energy." },
{ id = 20004, name = "Major Troll's Blood Potion", texture = "Interface\\Icons\\inv_potion_80", description = "Regenerate 20 health every 5 sec for 1 hour." },
{ id = 14530, name = "Heavy Runecloth Bandage", texture = "Interface\\Icons\\inv_misc_bandage_12", description = "Heals 2000 damage over 8 sec." },
{ id = 13180, name = "Stratholme Holy Water", texture = "Interface\\Icons\\inv_potion_75", description = "Inflicts between 438 and 562 damage to Undead in a 10 yard radius." },
},
["Food Buffs"] = {
{ id = 21023, name = "Dirge's Kickin' Chimaerok Chops", texture = "Interface\\Icons\\INV_Misc_Food_65", description = "Increases Strength by 25 for 1 hour." },
@@ -76,13 +81,15 @@ consumablesCategories = {
{ id = 20452, name = "Smoked Desert Dumplings", texture = "Interface\\Icons\\INV_Misc_Food_64", description = "Increases Strength by 20 for 1 hour." },
{ id = 51711, name = "Sweet Mountain Berry (Agility)", texture = "Interface\\Icons\\INV_Misc_Food_40", description = "Increases Agility by 10 for 1 hour." },
{ id = 51714, name = "Sweet Mountain Berry (Stamina)", texture = "Interface\\Icons\\INV_Misc_Food_40", description = "Increases Stamina by 10 for 1 hour." },
{ id = 51717, name = "Hardened Mushroom", texture = "Interface\\Icons\\INV_Mushroom_11", description = "Increases 25 Stamina for 15 minutes" },
{ id = 51720, name = "Power Mushroom", texture = "Interface\\Icons\\INV_Mushroom_11", description = "Increases 20 Strength for 15 minutes" },
{ id = 51717, name = "Hardened Mushroom", texture = "Interface\\Icons\\INV_Mushroom_11", description = "Increases 25 Stamina for 15 minutes." },
{ id = 51720, name = "Power Mushroom", texture = "Interface\\Icons\\INV_Mushroom_11", description = "Increases 20 Strength for 15 minutes." },
{ id = 21151, name = "Rumsey Rum Black Label", texture = "Interface\\Icons\\INV_Drink_04", description = "Increases Stamina by 15 for 15 minutes." },
{ id = 12218, name = "Monster Omelet", texture = "Interface\\Icons\\INV_Misc_Food_06", description = "Increases 12 Stamina and 12 Spirit for 15 minutes." },
{ id = 60977, name = "Danonzo's Tel'Abim Delight", texture = "Interface\\Icons\\INV_Misc_Food_06", description = "Gain 22 spell damage for 15 minutes." },
{ id = 60978, name = "Danonzo's Tel'Abim Medley", texture = "Interface\\Icons\\INV_Misc_Food_07", description = "Increase haste by 2% for 15 minutes." },
{ id = 60976, name = "Danonzo's Tel'Abim Surprise", texture = "Interface\\Icons\\INV_Misc_Food_09", description = "Gain 45 Ranged Attack Power for 15 minutes." },
{ id = 84041, name = "Gilneas Hot Stew", texture = "Interface\\Icons\\inv_drink_19", description = "Gain 12 spell damage for 15 minutes." },
{ id = 21217, name = "Sagefish Delight", texture = "Interface\\Icons\\inv_misc_fish_21", description = "Gain 6 mana every 5 seconds for 15 minutes." }
},
["Special Buffs"] = {
{ id = 12451, name = "Juju Power", texture = "Interface\\Icons\\INV_Misc_MonsterScales_11", description = "Increases Strength by 30 for 30 minutes." },
@@ -91,19 +98,23 @@ consumablesCategories = {
{ id = 12457, name = "Juju Chill", texture = "Interface\\Icons\\INV_Misc_MonsterScales_09", description = "Increase Frost resistance by 15 for 10 minutes." },
{ id = 12820, name = "Winterfall Firewater", texture = "Interface\\Icons\\INV_Potion_92", description = "Increases Attack Power by 35 for 20 minutes." },
{ id = 20079, name = "Spirit of Zanza", texture = "Interface\\Icons\\INV_Potion_30", description = "Increases the player's Spirit by 50 and Stamina by 50 for 2 hours." },
{ id = 20081, name = "Swiftness of Zanza", texture = "Interface\\Icons\\INV_Potion_30", description = "Increases the player's run speed by 20% for 2 hours." },
{ id = 20081, name = "Swiftness of Zanza", texture = "Interface\\Icons\\inv_potion_31", description = "Increases the player's run speed by 20% for 2 hours." },
{ id = 8412, name = "Ground Scorpok Assay", texture = "Interface\\Icons\\inv_misc_dust_02", description = "Increases Agility by 25 for 1 hour." },
{ id = 8410, name = "R.O.I.D.S.", texture = "Interface\\Icons\\inv_stone_15", description = "Increases Strenght by 25 for 1 hour." },
},
{ id = 8410, name = "R.O.I.D.S.", texture = "Interface\\Icons\\inv_stone_15", description = "Increases Strength by 25 for 1 hour." },
{ id = 8423, name = "Cerebral Cortex Compound", texture = "Interface\\Icons\\inv_potion_32", description = " Increases Intellect by 25 for 1 hour." }
}
}
-- Initialize tables
consumablesList = {}
consumablesNameToID = {}
consumablesTexture = {}
consumablesDescription = {}
-- Populate consumablesList and other lookup tables
for categoryName, consumables in pairs(consumablesCategories) do
for _, consumable in ipairs(consumables) do
consumablesList[consumable.id] = consumable.name
@@ -113,4 +124,3 @@ for categoryName, consumables in pairs(consumablesCategories) do
end
end
+1488 -464
View File
File diff suppressed because it is too large Load Diff