Closed pepedressingroom closed 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.
Maybe self.vignette = ns.AsTable(self.vignette)
should be added to nodes.lua
to help future-proof this concept.
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.
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.
@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!
Thank you @wyldclaw
And a small issue: Tailoring Crafting Table "Azure Loom" do not requires Fyrakk Assault.
Please help review these requests.
I don't know how to do with the following To-do list.