Quantcast

Fixed the dump to output the correct syntax for the qualities.

pompachomp [03-04-10 - 07:03]
Fixed the dump to output the correct syntax for the qualities.
Filename
Datamine.lua
diff --git a/Datamine.lua b/Datamine.lua
index 15e81d8..bc719f8 100644
--- a/Datamine.lua
+++ b/Datamine.lua
@@ -1445,7 +1445,7 @@ do
 	local REP_LEVELS = private.rep_level_strings
 	local FACTION_NAMES = private.faction_strings
 	local QUAL_STRINGS = private.item_quality_names
-	local V = private.game_versions
+	local V = private.game_version_names

 	local function Sort_AscID(a, b)
 		local reca, recb = private.recipe_list[a], private.recipe_list[b]
@@ -1475,7 +1475,7 @@ do
 		local specialty = not data.specialty and "" or (", "..data.specialty)
 		tinsert(output, string.format("-- %s -- %d", data.name, data.spell_id))
 		tinsert(output, string.format("AddRecipe(%d, %d, %s, %s, %s, %d, %d, %d, %d%s)",
-					      data.spell_id, data.skill_level, tostring(data.item_id), QUAL_STRINGS[data.quality], "V."..V[data.genesis],
+					      data.spell_id, data.skill_level, tostring(data.item_id), "Q."..QUAL_STRINGS[data.quality], "V."..V[data.genesis],
 					      data.optimal_level, data.medium_level, data.easy_level, data.trivial_level, specialty))

 		for i = 1, NUM_FILTER_FLAGS, 1 do