Quantcast

Changelog update.

Ackis [10-16-09 - 15:22]
Changelog update.
Filename
.pkgmeta
ARLDatamine.lua
Docs/CHANGES.txt
diff --git a/.pkgmeta b/.pkgmeta
index 8b6c663..7e6628c 100644
--- a/.pkgmeta
+++ b/.pkgmeta
@@ -2,9 +2,9 @@

 license-output: LICENSE.txt

-#manual-changelog:
-# filename: Docs/CHANGES.txt
-# markup-type: creole
+manual-changelog:
+ filename: Docs/CHANGES.txt
+ markup-type: creole

 enable-nolib-creation: yes

diff --git a/ARLDatamine.lua b/ARLDatamine.lua
index f1e8b6f..3447501 100644
--- a/ARLDatamine.lua
+++ b/ARLDatamine.lua
@@ -1355,19 +1355,19 @@ do
 		["exalted"] = 4,
 	}

-	-- local CLASS_TYPES = {
-		-- ["Death Knight"]	= 21, 	["Druid"]	= 22, 	["Hunter"]	= 23,
-		-- ["Mage"]		= 24, 	["Paladin"]	= 25, 	["Priest"]	= 26,
-		-- ["Shaman"]		= 27, 	["Rogue"]	= 28, 	["Warlock"]	= 29,
-		-- ["Warrior"]		= 30,
-	-- }
-
-	-- local ORDERED_CLASS_TYPES = {
-		-- [1]	= "Death Knight", 	[2]	= "Druid", 	[3]	= "Hunter",
-		-- [4]	= "Mage", 		[5]	= "Paladin", 	[6]	= "Priest",
-		-- [7]	= "Shaman", 		[8]	= "Rogue", 	[9]	= "Warlock",
-		-- [10]	= "Warrior",
-	-- }
+	local CLASS_TYPES = {
+		["Death Knight"]	= 21, 	["Druid"]	= 22, 	["Hunter"]	= 23,
+		["Mage"]		= 24, 	["Paladin"]	= 25, 	["Priest"]	= 26,
+		["Shaman"]		= 27, 	["Rogue"]	= 28, 	["Warlock"]	= 29,
+		["Warrior"]		= 30,
+	}
+
+	local ORDERED_CLASS_TYPES = {
+		[1]	= "Death Knight", 	[2]	= "Druid", 	[3]	= "Hunter",
+		[4]	= "Mage", 		[5]	= "Paladin", 	[6]	= "Priest",
+		[7]	= "Shaman", 		[8]	= "Rogue", 	[9]	= "Warlock",
+		[10]	= "Warrior",
+	}

 	local ROLE_TYPES = {
 		["dps"]		= 51, 	["tank"]	= 52, 	["healer"]	= 53,
@@ -1604,16 +1604,16 @@ do
 			end

 			-- Classes
-			--local class_type = strmatch(text_l, "Classes: (.+)")
+			local class_type = strmatch(text_l, "Classes: (.+)")

-			-- if class_type then
-				-- for idx, class in ipairs(ORDERED_CLASS_TYPES) do
-					-- if strmatch(class_type, class) then
-						-- scan_data[class] = true
-						-- scan_data.found_class = true
-					-- end
-				-- end
-			-- end
+			if class_type then
+				for idx, class in ipairs(ORDERED_CLASS_TYPES) do
+					if strmatch(class_type, class) then
+						scan_data[class] = true
+						scan_data.found_class = true
+					end
+				end
+			end

 			-- Armor types
 			if ITEM_TYPES[text_l] then
@@ -1681,21 +1681,15 @@ do
 		end

 		-- -- If we've picked up at least one class flag
-		-- if (scan_data.found_class) then
-			-- for k, v in ipairs(ORDERED_CLASS_TYPES) do
-				-- if scan_data[v] and not flags[CLASS_TYPES[v]] then
-					-- tinsert(missing_flags, tostring(CLASS_TYPES[v]).." ("..v..")")
-				-- elseif not scan_data[v] and flags[CLASS_TYPES[v]] then
-					-- tinsert(extra_flags, tostring(CLASS_TYPES[v]).." ("..v..")")
-				-- end
-			-- end
-		-- else	-- Recipe is not class specific - every flag should be set.
-			-- for k, v in ipairs(ORDERED_CLASS_TYPES) do
-				-- if not flags[CLASS_TYPES[v]] then
-					-- tinsert(missing_flags, tostring(CLASS_TYPES[v]).." ("..v..")")
-				-- end
-			-- end
-		-- end
+		if (scan_data.found_class) then
+			for k, v in ipairs(ORDERED_CLASS_TYPES) do
+				if scan_data[v] and not flags[CLASS_TYPES[v]] then
+					tinsert(missing_flags, tostring(CLASS_TYPES[v]).." ("..v..")")
+				elseif not scan_data[v] and flags[CLASS_TYPES[v]] then
+					tinsert(extra_flags, tostring(CLASS_TYPES[v]).." ("..v..")")
+				end
+			end
+		end

 		-- BoP Item
 		if (scan_data.is_item) then
diff --git a/Docs/CHANGES.txt b/Docs/CHANGES.txt
index 18786a6..caaac88 100644
--- a/Docs/CHANGES.txt
+++ b/Docs/CHANGES.txt
@@ -1,4 +1,7 @@
 ==ARL Change Log
+===Version 2575
+*Major issue with class filtering fixed.
+
 ===Version 2570
 *New recipes added.
 *Fixed an issue with Trial of the Crusader cross-faction recipes not appearing correctly.