local _, ns = ...

------------------------------------------------------------
-- Midnight Season 1: Progression Source Data
------------------------------------------------------------
ns.PROGRESSION = {}

------------------------------------------------------------
-- Mythic+ Dungeons
------------------------------------------------------------
ns.PROGRESSION.MYTHIC_PLUS = {
    { key = "H",  label = "Heroic", loot = 230, vault = 243, crestType = "Adventurer", crestAmount = "10" },
    { key = "M0", label = "M0",     loot = 246, vault = 256, crestType = "Champion",   crestAmount = "10" },
    { key = 2,  loot = 250, vault = 259, crestType = "Champion", crestAmount = "" },
    { key = 3,  loot = 250, vault = 259, crestType = "Champion", crestAmount = "" },
    { key = 4,  loot = 253, vault = 263, crestType = "Hero",     crestAmount = "" },
    { key = 5,  loot = 256, vault = 263, crestType = "Hero",     crestAmount = "" },
    { key = 6,  loot = 259, vault = 266, crestType = "Hero",     crestAmount = "" },
    { key = 7,  loot = 259, vault = 269, crestType = "Hero",     crestAmount = "" },
    { key = 8,  loot = 263, vault = 269, crestType = "Hero",     crestAmount = "" },
    { key = 9,  loot = 263, vault = 269, crestType = "Myth",     crestAmount = "" },
    { key = 10, loot = 266, vault = 272, crestType = "Myth",     crestAmount = "" },
    { key = 11, loot = 266, vault = 272, crestType = "Myth",     crestAmount = "" },
    { key = 12, loot = 266, vault = 272, crestType = "Myth",     crestAmount = "" },
}

ns.PROGRESSION.MYTHIC_PLUS_NOTES = {
    "M0 dungeons are on a daily lockout",
    "Expired keystone deducts 4 crests",
    "Affix added or changed at keys 4, 7, 10, 12",
}

------------------------------------------------------------
-- Raid: The Voidspire / The Dreamrift / March on Quel'Danas
------------------------------------------------------------
ns.PROGRESSION.RAID = {
    {
        difficulty = "LFR",
        crestType = "Veteran",
        color = "ff0070dd",
        bosses = {
            { range = "Void 1",     ilvl = 233, crestType = "Veteran",  crestAmount = "10" },
            { range = "Void 2-3",   ilvl = 237, crestType = "Veteran",  crestAmount = "15" },
            { range = "Void 4-5",   ilvl = 240, crestType = "Veteran",  crestAmount = "20" },
            { range = "Void 6",     ilvl = 243, crestType = "Veteran",  crestAmount = "20+10C" },
            { range = "Dream 1",    ilvl = 237, crestType = "Veteran",  crestAmount = "" },
            { range = "March 1",    ilvl = 240, crestType = "Veteran",  crestAmount = "" },
            { range = "March 2",    ilvl = 243, crestType = "Veteran",  crestAmount = "" },
        },
    },
    {
        difficulty = "Normal",
        crestType = "Champion",
        color = "ffa335ee",
        bosses = {
            { range = "Void 1",     ilvl = 246, crestType = "Champion", crestAmount = "10" },
            { range = "Void 2-3",   ilvl = 250, crestType = "Champion", crestAmount = "15" },
            { range = "Void 4-5",   ilvl = 253, crestType = "Champion", crestAmount = "20" },
            { range = "Void 6",     ilvl = 256, crestType = "Champion", crestAmount = "20+10H" },
            { range = "Dream 1",    ilvl = 250, crestType = "Champion", crestAmount = "" },
            { range = "March 1",    ilvl = 253, crestType = "Champion", crestAmount = "" },
            { range = "March 2",    ilvl = 256, crestType = "Champion", crestAmount = "" },
        },
    },
    {
        difficulty = "Heroic",
        crestType = "Hero",
        color = "ffff8000",
        bosses = {
            { range = "Void 1",     ilvl = 259, crestType = "Hero",     crestAmount = "10" },
            { range = "Void 2-3",   ilvl = 263, crestType = "Hero",     crestAmount = "15" },
            { range = "Void 4-5",   ilvl = 266, crestType = "Hero",     crestAmount = "20" },
            { range = "Void 6",     ilvl = 269, crestType = "Hero",     crestAmount = "20+10M" },
            { range = "Dream 1",    ilvl = 263, crestType = "Hero",     crestAmount = "" },
            { range = "March 1",    ilvl = 266, crestType = "Hero",     crestAmount = "" },
            { range = "March 2",    ilvl = 269, crestType = "Hero",     crestAmount = "" },
        },
    },
    {
        difficulty = "Mythic",
        crestType = "Myth",
        color = "ffff0000",
        bosses = {
            { range = "Void 1",     ilvl = 272, crestType = "Myth",     crestAmount = "10" },
            { range = "Void 2-3",   ilvl = 276, crestType = "Myth",     crestAmount = "15" },
            { range = "Void 4-5",   ilvl = 279, crestType = "Myth",     crestAmount = "20" },
            { range = "Void 6",     ilvl = 282, crestType = "Myth",     crestAmount = "20" },
            { range = "Dream 1",    ilvl = 276, crestType = "Myth",     crestAmount = "" },
            { range = "March 1",    ilvl = 279, crestType = "Myth",     crestAmount = "" },
            { range = "March 2",    ilvl = 282, crestType = "Myth",     crestAmount = "" },
        },
    },
}

ns.PROGRESSION.RAID_NOTES = {
    "Vault rewards are based on difficulty and bosses killed",
    "Killing a boss adds its loot pool and all previous bosses to your vault",
    "Voidspire Boss 6 awards bonus crests of the next higher tier (except Mythic)",
    "Voidspire: 6 bosses, Dreamrift: 1 boss, March on Quel'Danas: 2 bosses",
}

------------------------------------------------------------
-- Delves
------------------------------------------------------------
ns.PROGRESSION.DELVES = {
    { tier = 1,  loot = 220, vault = 233, crestType = "Adventurer", crestAmount = "5" },
    { tier = 2,  loot = 224, vault = 237, crestType = "Adventurer", crestAmount = "5" },
    { tier = 3,  loot = 227, vault = 240, crestType = "Adventurer", crestAmount = "5" },
    { tier = 4,  loot = 230, vault = 243, crestType = "Adventurer", crestAmount = "5" },
    { tier = 5,  loot = 233, vault = 246, crestType = "Veteran",    crestAmount = "5" },
    { tier = 6,  loot = 237, vault = 250, crestType = "Veteran",    crestAmount = "10" },
    { tier = 7,  loot = 246, vault = 253, crestType = "Champion",   crestAmount = "4" },
    { tier = 8,  loot = 250, vault = 259, crestType = "Champion",   crestAmount = "6" },
    { tier = 9,  loot = 250, vault = 259, crestType = "Champion",   crestAmount = "8" },
    { tier = 10, loot = 250, vault = 259, crestType = "Champion",   crestAmount = "10" },
    { tier = 11, loot = nil, vault = nil, crestType = "Hero",       crestAmount = "10" },
}

ns.PROGRESSION.DELVE_NOTES = {
    "Crests drop even if the delve is not bountiful",
    "Tier 11 Gilded Stash: 10 Hero + 5 Myth crests (4x/week after Delver's Journey Lv4)",
    "Nemesis Strongbox: 5 Champ + 5 Champ + 5 Hero + 5 Hero (kill 3+ Nemesis groups)",
    "Trovehunter's Bounty Map: 1/week, grants Hidden Trove at end of Tier 4+ delve",
}

-- Trovehunter's Bounty Map rewards (separate from bountiful delves)
ns.PROGRESSION.TROVEHUNTER = {
    { tier = 4,  loot = 237, crestType = "Veteran",  crestAmount = "8" },
    { tier = 5,  loot = 243, crestType = "Veteran",  crestAmount = "16" },
    { tier = 6,  loot = 246, crestType = "Champion", crestAmount = "8" },
    { tier = 7,  loot = 250, crestType = "Champion", crestAmount = "16" },
    { tier = 8,  loot = 259, crestType = "Hero",     crestAmount = "14" },
    { tier = 9,  loot = 259, crestType = "Hero",     crestAmount = "16" },
    { tier = 10, loot = 259, crestType = "Hero",     crestAmount = "18" },
    { tier = 11, loot = 259, crestType = "Hero",     crestAmount = "20" },
}

------------------------------------------------------------
-- Preys
------------------------------------------------------------
ns.PROGRESSION.PREY = {
    { difficulty = "Normal",    loot = 220, vault = 233, crestType = "Adventurer", crestAmount = "10" },
    { difficulty = "Hard",      loot = 233, vault = 246, crestType = "Veteran",    crestAmount = "10" },
    { difficulty = "Nightmare", loot = 246, vault = 259, crestType = "Champion",   crestAmount = "10" },
}

ns.PROGRESSION.PREY_NOTES = {
    "You get gear from 2 hunts per difficulty per week",
    "You get Crests from all hunts you do",
    "Hunts count toward the World row of the Vault",
}

------------------------------------------------------------
-- Crafting
------------------------------------------------------------
ns.PROGRESSION.CRAFTING_BLUE = {
    label = "Blue Gear (no crests)",
    qualities = { 165, 168, 171, 174, 178 },
}

ns.PROGRESSION.CRAFTING_ADVENTURER = {
    label = "Blue Gear + Adventurer Crests",
    qualities = { 220, 223, 226, 229, 233 },
}

ns.PROGRESSION.CRAFTING_VETERAN = {
    label = "Blue Gear + Veteran Crests",
    qualities = { 233, 236, 239, 243, 246 },
}

ns.PROGRESSION.CRAFTING_SPARK = {
    {
        label = "Spark of Radiance (no crests)",
        color = "ffa335ee",
        qualities = { 246, 249, 252, 255, 259 },
    },
    {
        label = "Spark + Hero",
        color = "ffff8000",
        qualities = { 259, 262, 265, 268, 272 },
    },
    {
        label = "Spark + Myth",
        color = "ffff0000",
        qualities = { 272, 275, 278, 281, 285 },
    },
}

ns.PROGRESSION.CRAFTING_NOTES = {
    "Spark of Radiance gear requires 80 crests of the chosen type",
    "Direct crest crafting — pick the tier you want",
}

------------------------------------------------------------
-- Crest Sources Summary
------------------------------------------------------------
ns.PROGRESSION.CREST_SOURCES = {
    {
        crestType = "Adventurer",
        color = "ff1eff00",
        sources = {
            "Heroic Dungeons",
            "Delves Tier 4",
            "Prey Normal",
        },
    },
    {
        crestType = "Veteran",
        color = "ff0070dd",
        sources = {
            "LFR Raid",
            "Delves Tier 5-6",
            "Prey Hard",
        },
    },
    {
        crestType = "Champion",
        color = "ffa335ee",
        sources = {
            "Normal Raid",
            "M0, M+ keys 2-3",
            "Delves Tier 7-9",
            "Prey Nightmare",
        },
    },
    {
        crestType = "Hero",
        color = "ffff8000",
        sources = {
            "Heroic Raid",
            "M+ keys 4-8",
            "Delves Tier 10-11",
        },
    },
    {
        crestType = "Myth",
        color = "ffff0000",
        sources = {
            "Mythic Raid",
            "M+ keys 9-12",
        },
    },
}
