Files
ConsumesManager/Itemlist.lua
T
Cinecom 3bc290dcb1 Update 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
2024-12-23 15:24:16 +01:00

126 lines
21 KiB
Lua

consumablesCategories = {
["Elixirs"] = {
{ id = 13452, name = "Elixir of the Mongoose", mats = {"2x Mountain Silversage", "2x Plaguebloom", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_32", description = "Increases Agility by 25 and critical strike chance by 2% for 1 hour." },
{ id = 9187, name = "Elixir of Greater Agility", mats = {"1x Sungrass", "1x Goldthorn", "1x Crystal Vial" }, texture = "Interface\\Icons\\INV_Potion_94", description = "Increases Agility by 15 for 1 hour." },
{ id = 13453, name = "Elixir of Brute Force", mats = {"2x Gromsblood", "2x Plaguebloom", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_40", description = "Increases Strength and Stamina by 18 for 1 hour." },
{ id = 13447, name = "Elixir of the Sages", mats = {"1x Dreamfoil", "2x Plaguebloom", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_29", description = "Increases Intellect and Spirit by 18 for 1 hour." },
{ id = 13454, name = "Greater Arcane Elixir", mats = {"3x Dreamfoil", "1x Mountain Silversage", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_25", description = "Increases spell damage by up to 35 for 1 hour." },
{ id = 13445, name = "Elixir of Superior Defense", mats = {"2x Stonescale Oil", "1x Sungrass", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_66", description = "Increases armor by 450 for 1 hour." },
{ id = 17708, name = "Elixir of Frost Power", mats = {"2x Wintersbite", "1x Khadgar's Whisker", "1x Leaded Vial"}, texture = "Interface\\Icons\\INV_Potion_03", description = "Increases Frost spell damage by up to 15 for 1 hour." },
{ id = 22193, name = "Bloodkelp Elixir of Resistance", mats = {"Quest: More Components of Importance"}, texture = "Interface\\Icons\\INV_Potion_21", description = "Increases all magical resistances by 15 for 30 minutes." },
{ id = 3825, name = "Elixir of Fortitude", mats = {"1x Wild Steelbloom", "1x Goldthorn", "1x Leaded Vial"}, texture = "Interface\\Icons\\INV_Potion_43", description = "Increases the player's maximum health by 120 for 1 hour." },
{ id = 9206, name = "Elixir of Giants", mats = {"1x Sungrass", "1x Gromsblood", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_61", description = "Increases your Strength by 25 for 1 hour." },
{ id = 9179, name = "Elixir of Greater Intellect", mats = {"1x Blindweed", "1x Khadgar's Whisker", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_10", description = "Increases Intellect by 25 for 1 hour." },
{ id = 50237, name = "Elixir of Greater Nature Power", mats = {"3x Heart of the Wild", "1x Golden Sansam", "1x Sungrass", "1x Crystal Vial"}, 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", mats = {"3x Fire Oil", "3x Firebloom", "1x Crystal Vial"}, 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", mats = {"1x Large Venom Sac", "1x Bruiseweed", "1x Leaded Vial"}, 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", 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." }
},
["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." },
{ id = 13511, name = "Flask of Distilled Wisdom", mats = {"30x Dreamfoil", "10x Icecap", "1x Black Lotus", "1x Crystal Vial"}, 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", mats = {"30x Dreamfoil", "10x Mountain Silversage", "1x Black Lotus", "1x Crystal Vial"}, 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", mats = {"30x Gromsblood", "10x Stonescale Oil", "1x Black Lotus", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_62", description = "Increases the player's maximum health by 1200 for 2 hours." },
{ id = 13506, name = "Flask of Petrification", mats = {"30x Stonescale Oil", "10x Mountain Silversage", "1x Black Lotus", "1x Crystal Vial"}, 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", mats = {"1x Elemental Fire", "1x Firebloom", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_24", description = "Absorbs 1950 to 3250 Fire damage for 1 hour." },
{ id = 13456, name = "Greater Frost Protection Potion", mats = {"1x Elemental Water", "1x Icecap", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_20", description = "Absorbs 1950 to 3250 Frost damage for 1 hour." },
{ id = 13458, name = "Greater Nature Protection Potion", mats = {"1x Elemental Earth", "1x Dreamfoil", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_22", description = "Absorbs 1950 to 3250 Nature damage for 1 hour." },
{ id = 13459, name = "Greater Shadow Protection Potion", mats = {"1x Shadow Oil", "2x Arthas' Tears", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_23", description = "Absorbs 1950 to 3250 Shadow damage for 1 hour." },
{ id = 13461, name = "Greater Arcane Protection Potion", mats = {"1x Dream Dust", "1x Dreamfoil", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_83", description = "Absorbs 1950 to 3250 Arcane damage for 1 hour." },
{ id = 13460, name = "Greater Holy Protection Potion", mats = {"1x Elemental Air", "1x Golden Sansam", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_09", description = "Absorbs 1950 to 3251 holy damage for 1 hour." }
},
["Weapon Enhancements"] = {
{ id = 12404, name = "Dense Sharpening Stone", mats = {"1x Dense Stone"}, texture = "Interface\\Icons\\INV_Stone_SharpeningStone_05", description = "Increases weapon damage by 8 for 30 minutes." },
{ id = 12645, name = "Thorium Shield Spike", mats = {"4x Thorium Bar", "4x Dense Grinding Stone", "2x Essence of Earth"}, texture = "Interface\\Icons\\INV_Misc_Armorkit_20", description = "Attaches a Thorium Spike to a shield, causing 20-30 damage when blocking." },
{ id = 20748, name = "Brilliant Mana Oil", mats = {"2x Large Brilliant Shard", "3x Purple Lotus", "1x Imbued Vial"}, texture = "Interface\\Icons\\INV_Potion_100", description = "Increases mana regeneration by 12 and spell damage by up to 25 for 30 minutes." },
{ id = 20749, name = "Brilliant Wizard Oil", mats = {"2x Large Brilliant Shard", "3x Firebloom", "1x Imbued Vial"}, texture = "Interface\\Icons\\INV_Potion_105", description = "Increases spell damage by up to 36 for 30 minutes." },
{ id = 23123, name = "Blessed Wizard Oil", mats = {"Quest: 8x Necrotic Rune"}, texture = "Interface\\Icons\\INV_Potion_26", description = "Increases spell damage against undead by up to 60. Lasts for 1 hour." },
{ id = 3829, name = "Frost Oil", mats = {"4x Khadgar's Whisker", "2x Wintersbite", "1x Leaded Vial"}, texture = "Interface\\Icons\\INV_Potion_20", description = "Adds a chance to inflict Frost damage on hit. Lasts 30 minutes." },
{ id = 23122, name = "Consecrated Sharpening Stone", mats = {"Quest: 8x Necrotic Rune"}, 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", mats = {"2x Elemental Earth", "3x Dense Stone"}, texture = "Interface\\Icons\\INV_Stone_02", description = "Increases critical strike chance by 2% for 30 minutes." },
{ id = 8928, name = "Instant Poison VI", mats = {"4x Dust of Deterioration", "1x Crystal Vial"}, texture = "Interface\\Icons\\Ability_Poisons", description = "20% chance to inflict 112 to 149 Nature damage." },
{ id = 3776, name = "Crippling Poison II", mats = {"3x Essence of Agony", "1x Crystal Vial"}, 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", mats = {"7x Deathweed", "1x Crystal Vial"}, 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 = 9186, name = "Mind-numbing Poison III", mats = {"2x Dust of Deterioration", "2x Essence of Agony", "1x Crystal Vial"}, 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", mats = {"2x Essence of Agony", "2x Deathweed", "1x Crystal Vial"}, 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", mats = {"1x Dense Stone", "1x Runecloth"}, 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", mats = {"3x Stonescale Oil", "1x Thorium Ore", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_69", description = "Increases armor by 2000 for 2 minutes." },
{ id = 13442, name = "Mighty Rage Potion", mats = {"3x Gromsblood", "1x Crystal Vial"}, 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", mats = {"1x Dreamfoil", "2x Plaguebloom", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_45", description = "Regenerates 12 mana every 5 seconds for 1 hour." },
{ id = 61423, name = "Dreamtonic", mats = {"Quest: 1x Small Dream Shard"}, texture = "Interface\\Icons\\INV_Potion_10", description = "Increases spell damage by up to 35 for 20 minutes." },
{ id = 61181, name = "Potion of Quickness", mats = {"1x Gromsblood", "2x Mountain Silversage", "1x Swiftness Potion"}, texture = "Interface\\Icons\\inv_potion_08", description = "Increases haste by 5% for 30 sec." }
},
["Utility Items"] = {
{ id = 20008, name = "Living Action Potion", mats = {"2x Icecap", "2x Mountain Silversage", "2x Heart of the Wild", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_07", description = "Removes movement impairing effects and grants immunity to them for 5 seconds." },
{ id = 3387, name = "Limited Invulnerability Potion", mats = {"2x Blindweed", "1x Ghost Mushroom", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_62", description = "Makes you immune to physical attacks for 6 seconds." },
{ id = 5634, name = "Free Action Potion", mats = {"2x Blackmouth Oil", "1x Stranglekelp", "1x Leaded Vial"}, texture = "Interface\\Icons\\INV_Potion_04", description = "Grants immunity to stun and movement impairing effects for 30 seconds." },
{ id = 61225, name = "Lucidity Potion", mats = {"1x Murloc Eye", "1x Dreamfoil", "1x Purple Lotus", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_36", description = "Become immune to Sleep, Polymorph, and Charm effects for 30 sec." },
{ id = 9030, name = "Restorative Potion", mats = {"1x Elemental Earth", "1x Goldthorn", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_01", description = "Removes a magic, curse, poison, or disease effect every 5 seconds for 30 seconds." },
{ id = 4390, name = "Iron Grenade", mats = {"1x Iron Bar", "1x Heavy Blasting Powder", "1x Silk Cloth"}, texture = "Interface\\Icons\\INV_Misc_Bomb_08", description = "Inflicts 132 to 219 Fire damage and stuns enemies in a 3-yard radius for 3 seconds." },
{ id = 15993, name = "Thorium Grenade", mats = {"1x Thorium Widget", "3x Thorium Bar", "3x Dense Blasting Powder", "3x Runecloth"}, texture = "Interface\\Icons\\INV_Misc_Bomb_08", description = "Inflicts 300 to 501 Fire damage and stuns enemies in a 3-yard radius for 3 seconds." },
{ id = 10646, name = "Goblin Sapper Charge", mats = {"1x Mageweave Cloth", "3x Solid Blasting Powder", "1x Unstable Trigger"}, 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", mats = {"Quest: 1x Small Dream Shard"}, texture = "Interface\\Icons\\INV_Drink_Milk_05", description = "Restores 525 to 875 health and 810 to 1350 mana." },
{ id = 13462, name = "Purification Potion", mats = {"2x Icecap", "2x Plaguebloom", "1x Crystal Vial"}, 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", mats = {"2x Dreamfoil", "2x Icecap", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_76", description = "Restores 1350 to 2251 mana." },
{ id = 13446, name = "Major Healing Potion", mats = {"2x Golden Sansam", "1x Mountain Silversage", "1x Crystal Vial"}, texture = "Interface\\Icons\\INV_Potion_54", description = "Restores 1050 to 1751 health."},
{ id = 7676, name = "Thistle Tea", mats = {"1x Swiftthistle", "1x Refreshing Spring Water"}, texture = "Interface\\Icons\\INV_Drink_Milk_05", description = "Instantly restores 100 energy." },
{ id = 20004, name = "Major Troll's Blood Potion", mats = {"1x Gromsblood", "2x Plaguebloom", "1x Crystal Vial"}, texture = "Interface\\Icons\\inv_potion_80", description = "Regenerate 20 health every 5 sec for 1 hour." },
{ id = 14530, name = "Heavy Runecloth Bandage", mats = {"2x Runecloth"}, texture = "Interface\\Icons\\inv_misc_bandage_12", description = "Heals 2000 damage over 8 sec." },
{ id = 13180, name = "Stratholme Holy Water", mats = {"Looted from Crates in Stratholme"}, 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", mats = {"1x Hot Spices", "1x Goblin Rocket Fuel", "1x Deeprock Salt", "1x Chimaerok Tenderloin"}, texture = "Interface\\Icons\\INV_Misc_Food_65", description = "Increases Strength by 25 for 1 hour." },
{ id = 18254, name = "Runn Tum Tuber Surprise", mats = {"1x Runn Tum Tuber", "1 Soothing Spices"}, texture = "Interface\\Icons\\INV_Misc_Food_63", description = "Increases Intellect by 10 for 1 hour." },
{ id = 13931, name = "Nightfin Soup", mats = {"1x Raw Nightfin Snapper", "1x Refreshing Spring Water"}, texture = "Interface\\Icons\\INV_Drink_17", description = "Restores 8 mana every 5 seconds for 1 hour." },
{ id = 20452, name = "Smoked Desert Dumplings", mats = {"1x Sandworm Meat", "1x Soothing Spices"}, texture = "Interface\\Icons\\INV_Misc_Food_64", description = "Increases Strength by 20 for 1 hour." },
{ id = 51711, name = "Sweet Mountain Berry (Agility)", mats = {"Gardening: Mountain Berry Bush Seeds"}, texture = "Interface\\Icons\\INV_Misc_Food_40", description = "Increases Agility by 10 for 1 hour." },
{ id = 51714, name = "Sweet Mountain Berry (Stamina)", mats = {"Gardening: Mountain Berry Bush Seeds"}, texture = "Interface\\Icons\\INV_Misc_Food_40", description = "Increases Stamina by 10 for 1 hour." },
{ id = 51717, name = "Hardened Mushroom", mats = {"Gardening: Magic Mushroom Spores"}, texture = "Interface\\Icons\\INV_Mushroom_11", description = "Increases 25 Stamina for 15 minutes." },
{ id = 51720, name = "Power Mushroom", mats = {"Gardening: Magic Mushroom Spores"}, texture = "Interface\\Icons\\INV_Mushroom_11", description = "Increases 20 Strength for 15 minutes." },
{ id = 21151, name = "Rumsey Rum Black Label", mats = {"Diverse Attainable"}, texture = "Interface\\Icons\\INV_Drink_04", description = "Increases Stamina by 15 for 15 minutes." },
{ id = 12218, name = "Monster Omelet", mats = {"1x Giant Egg", "2x Soothing Spices"}, 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", mats = {"1x Gargantuan Tel'Abim Banana", "1x Soothing Spices", "1x Icecap"}, texture = "Interface\\Icons\\INV_Misc_Food_06", description = "Gain 22 spell damage for 15 minutes." },
{ id = 60978, name = "Danonzo's Tel'Abim Medley", mats = {"1x Gargantuan Tel'Abim Banana", "1x Soothing Spices", "2x Golden Sansam"}, texture = "Interface\\Icons\\INV_Misc_Food_07", description = "Increase haste by 2% for 15 minutes." },
{ id = 60976, name = "Danonzo's Tel'Abim Surprise", mats = {"1x Gargantuan Tel'Abim Banana", "1x Soothing Spices", "1x Heart of the Wild"}, texture = "Interface\\Icons\\INV_Misc_Food_09", description = "Gain 45 Ranged Attack Power for 15 minutes." },
{ id = 84041, name = "Gilneas Hot Stew", mats = {"1x Red Wolf Meat", "1x White Spider Meat", "1x Refreshing Spring Water"}, texture = "Interface\\Icons\\inv_drink_19", description = "Gain 12 spell damage for 15 minutes." },
{ id = 21217, name = "Sagefish Delight", mats = {"1x Raw Greater Sagefish", "1x Hot Spices"}, texture = "Interface\\Icons\\inv_misc_fish_21", description = "Gain 6 mana every 5 seconds for 15 minutes." }
},
["Special Buffs"] = {
{ id = 12451, name = "Juju Power", mats = {"Quest: 3x Winterfall E'ko (Kill Furbolgs)"}, texture = "Interface\\Icons\\INV_Misc_MonsterScales_11", description = "Increases Strength by 30 for 30 minutes." },
{ id = 12460, name = "Juju Might", mats = {"Quest: 3x Frostmaul E'ko (Kill Frostmaul Giants)"}, texture = "Interface\\Icons\\INV_Misc_MonsterScales_07", description = "Increases Attack Power by 40 for 30 minutes." },
{ id = 12455, name = "Juju Ember", mats = {"Quest: 3x Shardtooth E'ko (Kill Bears)"}, texture = "Interface\\Icons\\INV_Misc_MonsterScales_15", description = "Increases Fire Resistance by 15 for 30 minutes." },
{ id = 12457, name = "Juju Chill", mats = {"Quest: 3x Chillwind E'ko (Kill Flying Chillwinds)"}, texture = "Interface\\Icons\\INV_Misc_MonsterScales_09", description = "Increase Frost resistance by 15 for 10 minutes." },
{ id = 12820, name = "Winterfall Firewater", mats = {"Drops from Furbolgs in Winterspring"}, texture = "Interface\\Icons\\INV_Potion_92", description = "Increases Attack Power by 35 for 20 minutes." },
{ id = 20079, name = "Spirit of Zanza", mats = {"Quest: 1x Zandalar Honor Token"}, 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", mats = {"Quest: 1x Zandalar Honor Token"}, texture = "Interface\\Icons\\inv_potion_31", description = "Increases the player's run speed by 20% for 2 hours." },
{ id = 8412, name = "Ground Scorpok Assay", mats = {"Quest: 1x Blasted Boar Lung", "2x Vulture Gizzard", "3x Scorpok Pincer"}, texture = "Interface\\Icons\\inv_misc_dust_02", description = "Increases Agility by 25 for 1 hour." },
{ id = 8410, name = "R.O.I.D.S.", mats = {"Quest: 1x Scorpok Pincer", "2x Blasted Boar Lung", "3x Snickerfang Jowl"}, texture = "Interface\\Icons\\inv_stone_15", description = "Increases Strength by 25 for 1 hour." },
{ id = 8423, name = "Cerebral Cortex Compound", mats = {"Quest: 10x Basilisk Brain", "2x Vulture Gizzard"}, texture = "Interface\\Icons\\inv_potion_32", description = " Increases Intellect by 25 for 1 hour." }
}
}
-- Initialize tables
consumablesList = {}
consumablesNameToID = {}
consumablesTexture = {}
consumablesDescription = {}
consumablesMats = {}
-- Populate consumablesList and other lookup tables
for categoryName, consumables in pairs(consumablesCategories) do
for _, consumable in ipairs(consumables) do
consumablesList[consumable.id] = consumable.name
consumablesNameToID[consumable.name] = consumable.id
consumablesTexture[consumable.id] = consumable.texture
consumablesDescription[consumable.id] = consumable.description
consumablesMats[consumable.id] = consumable.mats or {}
end
end