Skip to content

Commit

Permalink
Removed modID from Thaumaturge Vashreen (fixes #719)
Browse files Browse the repository at this point in the history
Removed a bunch of search logic concerning modIDs which should be having no effect at this point in the addon
  • Loading branch information
ImUnicke committed Mar 11, 2021
1 parent fc44255 commit 4404be3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ _.Zones =
i(152725), -- Technique: Mass Mill Astral Glory
}),
n(121589, { -- Thaumaturge Vashreen <Purveyor of Exquisite Furnishings>
["modID"] = 43, -- Relinquished
["g"] = {
i(153211, { -- Relinquished Hood
["cost"] = { { "c", 1508, 650 } }, -- 650x Veiled Argunite
Expand Down
25 changes: 0 additions & 25 deletions AllTheThings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4232,31 +4232,6 @@ local function SearchForLink(link)
-- print("link-search",modItemID,itemID)
_ = SearchForField("itemID", modItemID) or SearchForField("itemID", itemID);
-- print("found",_ and #_)
if _ and modID and modID ~= "" then
modID = tonumber(modID or "1");
if modID == 35 then modID = 23; end
local onlyMatchingModIDs = {};
for i,o in ipairs(_) do
if o.modID then
if o.modID == modID then
tinsert(onlyMatchingModIDs, o);
end
else
tinsert(onlyMatchingModIDs, o);
end
end
if #onlyMatchingModIDs > 0 then
return onlyMatchingModIDs;
else
local g = {};
for i,o in ipairs(_) do
o = CreateObject(o);
o.modID = modID;
MergeObject(g, o);
end
return g;
end
end
return _;
end
end
Expand Down
10 changes: 5 additions & 5 deletions db/Categories.lua

Large diffs are not rendered by default.

0 comments on commit 4404be3

Please sign in to comment.