From eb26a52a1b47d21a4cb2b5c2a3844231d46e4df5 Mon Sep 17 00:00:00 2001 From: torhal Date: Sun, 20 Sep 2009 01:19:02 +0000 Subject: [PATCH] Removed the extra-item-type detection code in the tooltip scanner - it is no longer required. --- ARLDatamine.lua | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 916fc28..f3fe268 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -1795,22 +1795,18 @@ do tinsert(output, "Extra flags: " .. tconcat(extra_flags, ", ")) end - local count = 0 - local types = "" + local found_type = false for k, v in ipairs(ORDERED_ITEM_TYPES) do if scan_data[v] then - types = types .. (count == 0 and "" or ", ") .. k .. " (" .. v ..")" - count = count + 1 + found_type = true + break end end - if count == 0 then + if not found_type then tinsert(output, "Missing: item type flag") - elseif count > 1 then - tinsert(output, "Extra item types in scan: ".. types) end - end -- Check to see if we have a horde/alliance flag, all recipes must have one of these -- 1.7.9.5