zarillion / handynotes-plugins

A collection of HandyNotes plugins for World of Warcraft.
Other
47 stars 34 forks source link

Master Some Data Update #378

Closed pepedressingroom closed 11 months ago

pepedressingroom commented 11 months ago

Please help review these requests.

I don't know how to do with the following To-do list.

wyldclaw commented 11 months ago

When it comes to supporting rares with multiple vignette ids (such as Dreamsurge)

I think we should allow the vignette property to be both a single property vignette = 5109 and a table vignette = {5109, 5905} similar to quest or requirements. If we do that and then update line 1698 in common.lua to iterate through and check for any vignette assigned we can support Dreamsurge rares and any other future similar rares.

We would need:

self.vignette = ns.AsTable(self.vignette)

We would also need:

local function IsValidVignette(vignettes, vignetteID)
    for vignette in vignettes do
        if vignette == vignetteID return true end
    end
    return false
end

And we would need:

if node.vignette and IsValidVignette(node.vignette, self:GetVignetteID()) and

Pretty sure all of this would happen inside of common.lua for now.

wyldclaw commented 11 months ago

Maybe self.vignette = ns.AsTable(self.vignette) should be added to nodes.lua to help future-proof this concept.

wyldclaw commented 11 months ago

Okay @pepedressingroom my code examples up there were missing a lot code BUT I now have the feature included in the master branch. I added vignette = {5115, 5902} to Char in the Waking Shores and it worked perfectly while the Dreamsurge is active.

pepedressingroom commented 11 months ago

Thank you @wyldclaw for add support for Dreamsurge and review these data. It's hard for me to understand immediately. I think I would learn a lot from you guys.

Regards.

wyldclaw commented 11 months ago

@pepedressingroom Thank YOU for all of the data!

I was able to get all Fyrakk Assault related notes to show the Requires Fyrakk Assault text in either red or white as well!

Screenshot 2023-11-05 194821 Screenshot 2023-11-05 194839

pepedressingroom commented 11 months ago

Thank you @wyldclaw

And a small issue: Tailoring Crafting Table "Azure Loom" do not requires Fyrakk Assault.