From e9d163e586d472b7a30397def8a52b8c76d6257e Mon Sep 17 00:00:00 2001 From: "James D. Callahan III" Date: Sat, 20 Mar 2010 04:37:47 -0400 Subject: [PATCH] Added RECIPE_TO_SPELL_MAP - generated in reverse key/pair order from SPELL_TO_RECIPE_MAP. --- Datamine.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Datamine.lua b/Datamine.lua index 54e6839..0eefdda 100644 --- a/Datamine.lua +++ b/Datamine.lua @@ -589,6 +589,13 @@ local SPELL_TO_RECIPE_MAP = { [67144] = 47636, [67147] = 47637, } +local RECIPE_TO_SPELL_MAP = {} + +do + for spell_id, recipe_id in pairs(SPELL_TO_RECIPE_MAP) do + RECIPE_TO_SPELL_MAP[recipe_id] = spell_id + end +end ------------------------------------------------------------------------------- -- Look up table of spell IDs for recipes which do not have a player flag -- 1.7.9.5