From 9e802d03003f4b3140efc0e33d03ca974699a320 Mon Sep 17 00:00:00 2001 From: ackis Date: Tue, 16 Jun 2009 21:48:25 +0000 Subject: [PATCH] Fix autodoc entries. --- ARLDatamine.lua | 4 +++- AckisRecipeList.lua | 19 +++++++------------ 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/ARLDatamine.lua b/ARLDatamine.lua index 47240f4..2e37111 100644 --- a/ARLDatamine.lua +++ b/ARLDatamine.lua @@ -2360,7 +2360,7 @@ local RECIPE_NAMES = { --- Parses a specific recipe in the database, and scanning its tooltip. -- @name AckisRecipeList:TooltipScanRecipe --- @param spellid The [[http://www.wowwiki.com/SpellLink Spell ID]] of the recipe being added to the database. +-- @param spellid The [[[http://www.wowwiki.com/SpellLink | Spell ID]]] of the recipe being added to the database. -- @return Recipe has its tooltips scanned. function addon:TooltipScanRecipe(spellid, is_vendor) local recipe_list = LoadRecipe() -- Get internal database @@ -2374,6 +2374,8 @@ function addon:TooltipScanRecipe(spellid, is_vendor) ARLDatamineTT:SetOwner(WorldFrame, "ANCHOR_NONE") GameTooltip_SetDefaultAnchor(ARLDatamineTT, UIParent) + local t = {} + if (recipe_list[spellid]) then local recipe_name = recipe_list[spellid]["Name"] local recipe_link = recipe_list[spellid]["RecipeLink"] diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua index 8e54f01..4e9e0cb 100644 --- a/AckisRecipeList.lua +++ b/AckisRecipeList.lua @@ -514,15 +514,17 @@ end -- do block Tradeskill functions --]] --- Description: Adds a specific recipe, along with it's info to an array +------------------------------------------------------------------------------- +-- Recipe DB Structures are defined in Documentation.lua +------------------------------------------------------------------------------- --- Adds a tradeskill recipe into the specified recipe database. -- @name AckisRecipeList:addTradeSkill -- @usage AckisRecipeList:addTradeSkill(RecipeDB,2329,1,2454,1,2259,0,1,55,75,95) -- @param RecipeDB The database (array) which you wish to add data too. --- @param SpellID The [http://www.wowwiki.com/SpellLink Spell ID] of the recipe being added to the database. +-- @param SpellID The [[http://www.wowwiki.com/SpellLink | Spell ID]] of the recipe being added to the database. -- @param SkillLevel The skill level at which the recipe may be learned. --- @param ItemID The [http://www.wowwiki.com/ItemLink Item ID] that is created by the recipe, or nil +-- @param ItemID The [[http://www.wowwiki.com/ItemLink | Item ID]] that is created by the recipe, or nil -- @param Rarity The rarity of the recipe. -- @param Profession The profession ID that uses the recipe. See [[database-documentation]] for a listing of profession IDs. -- @param Specialty The specialty that uses the recipe (ie: goblin engineering) or nil or blank @@ -532,9 +534,6 @@ end -- do block -- @param Green Level at which recipe is considered green. -- @param Grey Level at which recipe is considered greay. -- @return None, array is passed as a reference. -------------------------------------------------------------------------------- --- Recipe DB Structures are defined in Documentation.lua -------------------------------------------------------------------------------- function addon:addTradeSkill(RecipeDB, SpellID, SkillLevel, ItemID, Rarity, Profession, Specialty, Game, Orange, Yellow, Green, Grey) local spellLink = GetSpellLink(SpellID) -- Get the recipe link from the spell ID local profession_id = GetSpellInfo(Profession) @@ -596,13 +595,11 @@ function addon:addTradeSkill(RecipeDB, SpellID, SkillLevel, ItemID, Rarity, Prof end end --- Description: Adds all flag related information to the RecipeDB associated with the spell ID - --- Adds filtering flags to a specific tradeskill. -- @name AckisRecipeList:addTradeFlags -- @usage AckisRecipeList:addTradeFlags(RecipeDB,2329,1,2,3,21,22,23,24,25,26,27,28,29,30,36,41,51,52) -- @param RecipeDB The database (array) which you wish to add flags too. --- @param SpellID The [http://www.wowwiki.com/SpellLink Spell ID] of the recipe which flags are being added to. +-- @param SpellID The [[http://www.wowwiki.com/SpellLink | Spell ID]] of the recipe which flags are being added to. -- @param ... A listing of filtering flags. See [[database-documentation]] for a listing of filtering flags. -- @return None, array is passed as a reference. function addon:addTradeFlags(RecipeDB, SpellID, ...) @@ -622,13 +619,11 @@ function addon:addTradeFlags(RecipeDB, SpellID, ...) end --- Description: Adds all Acquire related information to the RecipeDB associated with the spell ID - --- Adds acquire methods to a specific tradeskill. -- @name AckisRecipeList:addTradeAcquire -- @usage AckisRecipeList:addTradeAcquire:(RecipeDB,2329,8,8) -- @param RecipeDB The database (array) which you wish to add acquire methods too. --- @param SpellID The [http://www.wowwiki.com/SpellLink Spell ID] of the recipe which acquire methods are being added to. +-- @param SpellID The [[http://www.wowwiki.com/SpellLink | Spell ID]] of the recipe which acquire methods are being added to. -- @param ... A listing of acquire methods. See [[database-documentation]] for a listing of acquire methods and how they behave. -- @return None, array is passed as a reference. do -- 1.7.9.5