local addonName, ns = ...

if addonName ~= "NomTools" then
    ns = _G.NomTools
end

if not ns then
    return
end

ns.CONSUMABLE_CATALOG = {
    flask = {
        { key = "blood_knights", label = "Flask of the Blood Knights", buffIDs = { 1235110 }, itemIDs = { 241324, 241325 } },
        { key = "magisters", label = "Flask of the Magisters", buffIDs = { 1235108 }, itemIDs = { 241322, 241323 } },
        { key = "shattered_sun", label = "Flask of the Shattered Sun", buffIDs = { 1235111 }, itemIDs = { 241326, 241327 } },
        { key = "thalassian_resistance", label = "Flask of Thalassian Resistance", buffIDs = { 1235057 }, itemIDs = { 241320, 241321 } },
        { key = "honor", label = "Midnight Honor Flask", buffIDs = { 1239355 }, itemIDs = { 241334 } },
    },

    -- Foods are tracked by item ID here.
    -- The actual active buff check uses the shared Midnight food aura list below,
    -- so most food entries do not need their own buffIDs.
    --
    -- When Blizzard adds new foods later:
    -- - Add the new item IDs here.
    -- - If the reminder still does not recognize the buff, check whether the aura
    --   spell ID needs to be added to sharedBuffIDs.food.
    --
    -- Best source for that shared aura list:
    -- - Wowhead spell 1219179, "Become Well Fed"
    -- - Its Triggered By list shows the real Well Fed / Hearty Well Fed aura IDs.
    --
    -- If anything looks off, the in-game player aura spellId is still the final
    -- source of truth.
    food = {
        { key = "royal_roast", label = "Royal Roast", itemIDs = { 242275 } },
        { key = "hearty_royal_roast", label = "Hearty Royal Roast", itemIDs = { 242747 } },
        { key = "impossibly_royal_roast", label = "Impossibly Royal Roast", itemIDs = { 255847 } },
        { key = "hearty_impossibly_royal_roast", label = "Hearty Impossibly Royal Roast", itemIDs = { 268679 } },
        { key = "harandar_celebration", label = "Harandar Celebration", itemIDs = { 255846 } },
        { key = "hearty_harandar_celebration", label = "Hearty Harandar Celebration", itemIDs = { 266996 } },
        { key = "silvermoon_parade", label = "Silvermoon Parade", itemIDs = { 255845 } },
        { key = "hearty_silvermoon_parade", label = "Hearty Silvermoon Parade", itemIDs = { 266985 } },
    },
    weapon = {
        { key = "phoenix_oil", label = "Thalassian Phoenix Oil", weaponType = "NEUTRAL", itemIDs = { 243733, 243734 } },
        { key = "weightstone", label = "Refulgent Weightstone", weaponType = "BLUNT", itemIDs = { 237367, 237369 } },
        { key = "whetstone", label = "Refulgent Whetstone", weaponType = "BLADED", itemIDs = { 237370, 237371 } },
    },
    poisons = {
        { key = "instant_poison", label = "Instant Poison", poisonCategory = "lethal", spellID = 315584 },
        { key = "wound_poison", label = "Wound Poison", poisonCategory = "lethal", spellID = 8679 },
        { key = "deadly_poison", label = "Deadly Poison", poisonCategory = "lethal", spellID = 2823 },
        { key = "crippling_poison", label = "Crippling Poison", poisonCategory = "non_lethal", spellID = 3408 },
        { key = "atrophic_poison", label = "Atrophic Poison", poisonCategory = "non_lethal", spellID = 381637 },
        { key = "numbing_poison", label = "Numbing Poison", poisonCategory = "non_lethal", spellID = 5761 },
    },
    rune = {
        { key = "void_touched", label = "Void-Touched Augment Rune", itemIDs = { 259085 } },
    },

    -- Midnight flask/food/rune tracking uses shared aura spell lists so reminders
    -- can still detect active buffs even when the source item is not in catalog.
    sharedBuffIDs = {
        flask = {
            1235057,
            1235108,
            1235110,
            1235111,
            1239355,
        },
        food = {
            1219182, 1219183, 1219184, 1219185,
            1232076, 1232078, 1232080, 1232082,
            1232086, 1232087, 1232089, 1232091,
            1232313, 1232316, 1232317, 1232318,
            1232320, 1232321, 1232324, 1232325,
            1232490, 1232491, 1232492, 1232493,
            1232496, 1232498, 1232500, 1232501,
            1232582, 1232584, 1232585,
            1233400, 1233401, 1233402, 1233403, 1233404,
            1233405, 1233406, 1233407, 1233408,
            1233703, 1233704, 1233705, 1233706, 1233707,
            1233708, 1233709, 1233710, 1233711, 1233712,
            1233713, 1233714, 1233715, 1233716, 1233717,
            1233718, 1233719, 1233720, 1233721, 1233722,
            1233723, 1233724, 1233725, 1233726, 1233727,
            1233728, 1233729, 1233730, 1233731, 1233732,
            1233733,
            1283372,
            1284616, 1284617, 1284618, 1284619,
            1284641, 1284642, 1284643, 1284644,
            1284647, 1284648, 1284649, 1284650,
            1285644,
        },
        rune = { 347901, 393438, 453250, 1234969, 1242347, 1264426 },
    },
}