-------------------------------------------------------------------------------
-- PowerInfusion.lua
-- Tracked as buff 10060 on the player via the tracker's AuraContainer
-- slot. PI is a known secret-in-combat aura that containers display
-- (one of the secret-detection sentinel spells).
-------------------------------------------------------------------------------
local addonName, ns = ...

local POWER_INFUSION_ID = 10060

ns.RegisterTracker("powerinfusion", {
    dbPrefix     = "pi_",
    displaySpell = POWER_INFUSION_ID,
    buffSpellIDs = { POWER_INFUSION_ID },
    frameSuffix  = "PowerInfusion",
    label        = "Power Infusion Tracker",
    defaultPos   = { "CENTER", "CENTER", 0, 0 },

    voiceClip = "Interface\\AddOns\\BuzzardAuras\\Media\\Audio\\Voice_PowerInfusion.ogg",

    -- Group-level voice callout choice (Sound element, Voice mode): the user
    -- picks "Power Infusion" (full name) or "PI" (short callout, reusing the
    -- existing Voice_PowerInfusionShort.ogg clip). Default is "PI".
    voiceOptions = {
        { value = "PI",            name = "PI",             file = "PowerInfusionShort" },
        { value = "PowerInfusion", name = "Power Infusion", file = "PowerInfusion" },
    },

    -- 12.1 preset (see Innervate for the sparse-table rationale).
    -- Circle #FFCF00 @ 85%; sound defaults to the "PI" callout.
    preset = {
        { style = "circle", circleRadius = 60, ringTexture = "Ring_20px",
          color = { 1.0, 0.811765, 0.0, 0.85 } },
        { style = "sound", soundType = "voice", soundChannel = "Master",
          voiceChoice = "PI" },
    },

    -- No legacy flat keys: PI never existed pre-multi-element, so no
    -- migration source (and no default trackers). barCircleColor seeds
    -- new elements' color.
    defaults = {
        enabled        = true,
        barCircleColor = { 0.85, 0.75, 1.0, 1.0 },
    },
})

ns.POWER_INFUSION_ID = POWER_INFUSION_ID
