From 7afa165653024287fb37b745997efbff5aa53408 Mon Sep 17 00:00:00 2001 From: ackis Date: Mon, 10 Aug 2009 19:17:20 +0000 Subject: [PATCH] Add player role flag checking back in, starting a table to have exclusions --- ARLDatamine.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index bae0321..468b2c9 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -85,6 +85,7 @@ local PROFESSIONS = { ------------------------------------------------------------------------------- -- Mined via Data-tools -- Table is Public Domain now +-- Look up table of Spell IDs to the recipe which trains them. ------------------------------------------------------------------------------- local SPELL_ITEM = { ------------------------------------------------------------------------------- @@ -558,6 +559,14 @@ local SPELL_ITEM = { [56011] = 42188, [63924] = 45774, } +------------------------------------------------------------------------------- +-- Look up table of spell IDs for recipes which do not have a player flag +-- For example, fireworks. +------------------------------------------------------------------------------- +local NO_PLAYER_FLAG = { + [30344] = true, [30341] = true, [32814] = true, [23066] = true, +} + local function LoadRecipe() local recipe_list = addon:GetRecipeTable() @@ -1744,13 +1753,11 @@ do end -- We need to code this better. Some items (aka bags) won't have a role at all. ---[[ -- Check for player role flags - if (not scan_data.tank) and (not scan_data.healer) and (not scan_data.caster) and (not scan_data.dps) then + if (not scan_data.tank) and (not scan_data.healer) and (not scan_data.caster) and (not scan_data.dps) and (not NO_PLAYER_FLAG[spellid]) then addedtotable = true tinsert(t,"No player role flag. " .. recipe_name .. " (" .. spellid .. ")") end -]]-- if (scan_data.specialty) then if (not scan_data.recipe_list[spellid]["Specialty"]) then -- 1.7.9.5