James D. Callahan III [03-08-11 - 06:06]
diff --git a/Scanner.lua b/Scanner.lua
index 1059b18..6e9b1bb 100644
--- a/Scanner.lua
+++ b/Scanner.lua
@@ -972,13 +972,13 @@ do
local trivial_level = recipe.trivial_level
local required_faction = recipe.required_faction
- if recipe.required_faction then
+ if required_faction then
table.insert(output,
- ("recipe = AddRecipe(%d, %d, %s, Q.%s, V.%s, %d, %d, %d, %d%s)"):format(spell_id, skill_level, tostring(recipe.item_id), Q[recipe.quality], V[genesis],
+ ("recipe = AddRecipe(%d, %d, %s, Q.%s, V.%s, %d, %d, %d, %d%s, %s)"):format(spell_id, skill_level, tostring(recipe.item_id), Q[recipe.quality], V[genesis],
optimal_level, medium_level, easy_level, trivial_level, specialty, required_faction))
else
table.insert(output,
- ("recipe = AddRecipe(%d, %d, %s, Q.%s, V.%s, %d, %d, %d, %d%s)"):format(spell_id, skill_level, tostring(recipe.item_id), Q[recipe.quality], V[genesis],
+ ("recipe = AddRecipe(%d, %d, %s, Q.%s, V.%s, %d, %d, %d, %d%s, %s)"):format(spell_id, skill_level, tostring(recipe.item_id), Q[recipe.quality], V[genesis],
optimal_level, medium_level, easy_level, trivial_level, specialty))
end