minor tweaks

tooltip source should be more consistent now
attempt to stop error messages from wishlist
some text edits
This commit is contained in:
Spit
2024-11-28 16:13:50 +03:00
parent 630d072697
commit 3c442882a1
5 changed files with 25 additions and 29 deletions
+5 -4
View File
@@ -257,13 +257,14 @@ function AtlasLoot_CategorizeWishList(wlTable)
if ((table.getn(result) + 1) - math.floor((table.getn(result) + 1)/15)*15) == 0 then table.insert(result, { 0, "", "", "" }) end
-- Subheading
--[[ some debug code that I've used to fix WishList errors before due to people adding drops to AtlasLoot incorrectly.
-- some debug code that I've used to fix WishList errors before due to people adding drops to AtlasLoot incorrectly.
local box = k or "Unknown"
local cat = categories[k][1][5] or "Unknown"
print("box: "..box.." - cat: "..cat)
table.insert(result, { 0, "INV_Box_01", "=q6="..box, "=q0="..GetLootTableParent(strsplit("|", cat)) });]]--
local parent = GetLootTableParent(strsplit("|", cat)) or "Unknown"
--print("box: "..box.." - cat: "..cat)
table.insert(result, { 0, "INV_Box_01", "=q6="..box, "=q0="..parent });
table.insert(result, { 0, "INV_Box_01", "=q6="..k, "=q0="..GetLootTableParent(strsplit("|", categories[k][1][5])) });
--table.insert(result, { 0, "INV_Box_01", "=q6="..k, "=q0="..GetLootTableParent(strsplit("|", categories[k][1][5])) });
-- Sort first then add items
table.sort(v, AtlasLoot_WishListSortCheck); -- not works?
for i = 1, table.getn(v) do table.insert(result, v[i]) end