diff Junk.lua @ 191:4aeedce4c995 v93

Added better identification of duplicate items.
author yellowfive
date Fri, 30 Oct 2020 21:14:57 -0700
parents 180cb1458674
children
line wrap: on
line diff
--- a/Junk.lua	Mon Oct 19 11:20:07 2020 -0700
+++ b/Junk.lua	Fri Oct 30 21:14:57 2020 -0700
@@ -51,11 +51,11 @@
                         itemData.bagId = bagId
                         itemData.slotId = slotId
                         return itemData
-                    elseif diffs < 10000 then                        
+                    elseif diffs < 100000 then                        
                         if itemData.azerite and #itemData.azerite > 0 then
-                            threshold = 100
+                            threshold = 1000
                         else
-                            threshold = 10000
+                            threshold = 100000
                         end
                         if diffs < threshold and diffs < bestMatchDiffs then
                             -- closest match we could find
@@ -454,11 +454,11 @@
                         itemData.bagId = bagId
                         itemData.slotId = i
                         return itemData
-                    elseif diffs < 10000 then                        
+                    elseif diffs < 100000 then                        
                         if itemData.azerite and #itemData.azerite > 0 then
-                            threshold = 100
+                            threshold = 1000
                         else
-                            threshold = 10000
+                            threshold = 100000
                         end
                         if diffs < threshold and diffs < bestMatchDiffs then
                             -- closest match we could find