From 0752d7819b04936e7cd341ae073d85235d6086b5 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sun, 6 Mar 2011 11:58:11 -0600 Subject: [PATCH] When detecting differences in skill levels between what ARL has and what is actually in-game, do a live update of the recipe. --- Scanner.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Scanner.lua b/Scanner.lua index a52c7f6..3c026d0 100644 --- a/Scanner.lua +++ b/Scanner.lua @@ -629,6 +629,17 @@ do if info[i_name] and info[i_name] ~= recipe_list[i].skill_level then found = true table.insert(output, L["DATAMINER_SKILLELVEL"]:format(i_name, recipe_list[i].skill_level, info[i_name])) + recipe_list[i].skill_level = info[i_name] + + local skill_level = recipe_list[i].skill_level + local optimal_level = recipe_list[i].optimal_level + + if optimal_level > skill_level or optimal_level < skill_level then + recipe_list[i].optimal_level = skill_level + recipe_list[i].medium_level = skill_level + 10 + recipe_list[i].easy_level = skill_level + 15 + recipe_list[i].trivial_level = skill_level + 20 + end end end table.insert(output, "Trainer Skill Level Scan Complete.") -- 1.7.9.5