HandyNotes: The War Within

HandyNotes: The War Within

12M Downloads

[Feature Request] K'aresh mount: Translocated Gorger

Closed this issue ยท 0 comments

commented

I'm not going to pull a request, just requesting to update this mount.
FYI: https://www.wowhead.com/item=246240/devoured-energy-pod#comments

Below is a draft.

local Item = ns.reward.Item
local Circle = ns.poi.Circle
local QuestStatus = ns.tooltip.QuestStatus

-------------------------------------------------------------------------------
---------------------------- DEVOURER ATTACKS RARES ---------------------------
-------------------------------------------------------------------------------

local DevourerAttacks = Class('DevourerAttacks', Collectible, {
    label = '{npc:231231}',
    icon = 3767410,
    quest = {91433, 91434, 91435, 91436},
    questCount = true,
    fgroup = 'devourer_attacks',
    rewards = {
        Mount({item = 246159, id = 2602}) -- Translocated Gorger
    },
    pois = {
        Path({color = 'Red', Circle({origin = 71792822, radius = 3})}), -- Korgoth the Hungerer (The Oasis)
        Path({Circle({origin = 50615398, radius = 3})}), -- Miasmawrath (Eco-dome Primus)
        Path({color = 'Green', Circle({origin = 49476417, radius = 3})}), -- The Harvester (The Atrium)
        Path({color = 'Gray', Circle({origin = 61888393, radius = 3})}) -- The Wallbreaker (Tazavesh)
    }
}) -- Devourer Attacks

function DevourerAttacks.getters:note()
    local function ItemStatus(itemID, numNeed, note, spacer)
        local txt
        local numHave = C_Item.GetItemCount(itemID, true, nil, nil, true) -- includeAccountBank
        local status = format('%d/%s', numHave, numNeed)
        if type(numNeed) == 'number' and numHave >= numNeed then
            txt = ns.status.Green(status)
        else
            txt = ns.status.Red(status)
        end
        if note then txt = txt .. ' ' .. note end
        if spacer == nil or spacer == true then txt = '\n\n' .. txt end
        return txt
    end

    local note = L['devourer_attacks_note'] .. '\n\n'
    note = note .. ItemStatus(246240, 20, '{item:246240}', false) .. '\n\n' -- Devoured Energy-Pod
    note = note .. QuestStatus(91433, _G.ACCOUNT_QUEST_LABEL, '{quest:84993}', true) -- Korgoth the Hungerer
    note = note .. QuestStatus(91434, _G.ACCOUNT_QUEST_LABEL, '{quest:86447}', true) -- Miasmawrath
    note = note .. QuestStatus(91435, _G.ACCOUNT_QUEST_LABEL, '{quest:86464}', true) -- The Harvester
    note = note .. QuestStatus(91436, _G.ACCOUNT_QUEST_LABEL, '{quest:86465}', true) -- The Wallbreaker
    return note
end

-- L['devourer_attacks_note'] = 'You can acquire up to 4x {item:246240} on your Warband every week. \nSo, you\'ll need a minimum of 5 weeks to get the mount.'

map.nodes[25005000] = DevourerAttacks()

map.nodes[71792822] = Rare({
    id = 231229,
    quest = 84993,
    vignette = 6608, -- Devourer Attack: The Oasis
    fgroup = 'devourer_attacks',
    rewards = {
        Item({item = 246240, quest_account = 84993}), -- Devoured Energy-Pod
        Reputation({id = 2658, gain = 15, quest = 84993}) -- The K'aresh Trust
    }
}) -- Korgoth the Hungerer

map.nodes[50615398] = Rare({
    id = 234970,
    quest = 86447,
    vignette = 6705, -- Devourer Attack: Eco-dome: Primus
    fgroup = 'devourer_attacks',
    rewards = {
        Item({item = 246240, quest_account = 86447}), -- Devoured Energy-Pod
        Reputation({id = 2658, gain = 15, quest = 86447}) -- The K'aresh Trust
    }
}) -- Miasmawrath

map.nodes[49476417] = Rare({
    id = 235087,
    quest = 86464,
    vignette = 6707, -- Devourer Attack: The Atrium
    fgroup = 'devourer_attacks',
    rewards = {
        Item({item = 246240, quest_account = 86464}), -- Devoured Energy-Pod
        Reputation({id = 2658, gain = 15, quest = 86464}) -- The K'aresh Trust
    }
}) -- The Harvester

taz.nodes[28617425] = Rare({
    id = 235104,
    parent = map.id,
    quest = 86465,
    vignette = 6708, -- Devourer Attack: Tazavesh
    fgroup = 'devourer_attacks',
    rewards = {
        Item({item = 246240, quest_account = 86465}), -- Devoured Energy-Pod
        Reputation({id = 2658, gain = 15, quest = 86465}) -- The K'aresh Trust
    }
}) -- The Wallbreaker

REVIEW: DevourerQuests[i][3] and DevourerQuests[i][4] are flagged account-wide, which could be reputation quests and Energy-Pod loot quests.

local DevourerQuests = {
{84993, 91286, 91309, 91433}, -- Korgoth the Hungerer
{86447, 91287, 91310, 91434}, -- Miasmawrath
{86464, 91289, 91311, 91435}, -- The Harvester
{86465, 91290, 91312, 91436} -- The Wallbreaker
}