From 784ffedf2fb9afc75fbfb1f628c55c10d50042b8 Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Mon, 7 Mar 2011 19:27:03 -0600 Subject: [PATCH] Replaced Player["ProfessionLevel"] with private.current_profession_scanlevel - this is a more accurate designation, especially since the scanned trade skill may be from a link. --- Interface/List.lua | 4 ++-- Recipe.lua | 2 +- core.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Interface/List.lua b/Interface/List.lua index 94ae974..3b0c056 100644 --- a/Interface/List.lua +++ b/Interface/List.lua @@ -585,7 +585,7 @@ function private.InitializeListFrame() end -- Display all skill levels? - if not general_filters.skill and recipe.skill_level > Player["ProfessionLevel"] then + if not general_filters.skill and recipe.skill_level > private.current_profession_scanlevel then return false end @@ -1892,7 +1892,7 @@ do local color_1 = BASIC_COLORS["normal"] local color_2 - local skill_level = Player["ProfessionLevel"] + local skill_level = private.current_profession_scanlevel local recipe_level = recipe.skill_level local optimal_level = recipe.optimal_level local medium_level = recipe.medium_level diff --git a/Recipe.lua b/Recipe.lua index 0ee6a4a..e4d14a3 100644 --- a/Recipe.lua +++ b/Recipe.lua @@ -150,7 +150,7 @@ do recipe_name = string.gsub(recipe_name, _G.ENSCRIBE .. " ", "") end local has_faction = private.Player:HasProperRepLevel(self.acquire_data[A.REPUTATION]) - local skill_level = private.Player["ProfessionLevel"] + local skill_level = private.current_profession_scanlevel local recipe_level = self.skill_level local diff_color diff --git a/core.lua b/core.lua index 2144b52..749ec4d 100644 --- a/core.lua +++ b/core.lua @@ -1029,7 +1029,7 @@ do local player = private.Player -- Set the current profession level, and update the cached data. - player["ProfessionLevel"] = prof_level + private.current_profession_scanlevel = prof_level -- Make sure we're only updating a profession the character actually knows - this could be a scan from a tradeskill link. local is_linked = _G.IsTradeSkillLinked() or _G.IsTradeSkillGuild() -- 1.7.9.5