Quantcast

Commented most of Sort_Acquisition() until it can be re-written for the new acquire_data design.

James D. Callahan III [03-16-10 - 05:16]
Commented most of Sort_Acquisition() until it can be re-written for the new acquire_data design.
Filename
Frame.lua
diff --git a/Frame.lua b/Frame.lua
index 4cf07cd..30089cf 100644
--- a/Frame.lua
+++ b/Frame.lua
@@ -391,26 +391,26 @@ do

 	-- Will only sort based off of the first acquire type
 	local function Sort_Acquisition(a, b)
-		local reca = recipe_list[a]["Acquire"][1]
-		local recb = recipe_list[b]["Acquire"][1]
-
-		if not reca or not recb then
-			return not not reca
-		end
-
-		if reca.type ~= recb.type then
-			return reca.type < recb.type
-		end
-
-		if reca.type == A.CUSTOM then
-			if reca.ID == recb.ID then
-				return recipe_list[a].name < recipe_list[b].name
-			else
-				return reca.ID < recb.ID
-			end
-		else
+--		local reca = recipe_list[a].acquire_data[1]
+--		local recb = recipe_list[b].acquire_data[1]
+
+--		if not reca or not recb then
+--			return not not reca
+--		end
+
+--		if reca.type ~= recb.type then
+--			return reca.type < recb.type
+--		end
+
+--		if reca.type == A.CUSTOM then
+--			if reca.ID == recb.ID then
+--				return recipe_list[a].name < recipe_list[b].name
+--			else
+--				return reca.ID < recb.ID
+--			end
+--		else
 			return recipe_list[a].name < recipe_list[b].name
-		end
+--		end
 	end

 	local function Sort_Location(a, b)