Quantcast

Fix a few typos/etc, not to bad for mr dry-coder

ackis [11-04-08 - 00:41]
Fix a few typos/etc, not to bad for mr dry-coder
Filename
AckisRecipeList.lua
RecipeDB/ARL-Enchant.lua
RecipeDB/DB-Manual.lua
diff --git a/AckisRecipeList.lua b/AckisRecipeList.lua
index bf11601..e176448 100644
--- a/AckisRecipeList.lua
+++ b/AckisRecipeList.lua
@@ -1286,7 +1286,7 @@ local function InitializeRecipes(RecipeDB, playerProfession)

 	if a then

-		playerData.totalRecipes = a(addon, RecipeDB)
+		return a(addon, RecipeDB)

 	else

@@ -1523,9 +1523,9 @@ do
 	-- Input: playerData table
 	-- Output: None, it's referenced

-	local function InitPlayerData(pData)
+	local function InitPlayerData()

-		pData = {}
+		local pData = {}

 		pData.playerFaction = UnitFactionGroup("player")
 		local _
@@ -1607,6 +1607,8 @@ do
 		for i in pairs(LeatherworkSpec) do AllSpecialtiesTable[i] = true end
 		for i in pairs(TailorSpec) do AllSpecialtiesTable[i] = true end

+		return pData
+
 	end

 	-- Description: Initalizes all the recipe databases to their initial
@@ -1700,7 +1702,7 @@ do
 			-- First time a scan has been run, we need to get the player specifc data, specifically faction information, profession information and other pertinant data.
 			if (playerData == nil) then

-				InitPlayerData(playerData)
+				playerData = InitPlayerData()

 			end

@@ -1718,7 +1720,7 @@ do
 			playerData.playerSpecialty = self:GetTradeSpecialty(SpecialtyTable, playerData)

 			-- Add the recipes to the database
-			InitializeRecipes(RecipeList, playerData.playerProfession)
+			playerData.totalRecipes = InitializeRecipes(RecipeList, playerData.playerProfession)

 			-- Scan all recipes and mark the ones which ones we know
 			self:ScanForKnownRecipes(RecipeList, playerData)
diff --git a/RecipeDB/ARL-Enchant.lua b/RecipeDB/ARL-Enchant.lua
index cf60bab..2d38122 100644
--- a/RecipeDB/ARL-Enchant.lua
+++ b/RecipeDB/ARL-Enchant.lua
@@ -14,10 +14,10 @@ Entries to this file will be overwritten

 ************************************************************************

-File date: @file-date-iso@
-File revision: @file-revision@
-Project revision: @project-revision@
-Project version: @project-version@
+File date: 2008-11-03T22:59:33Z
+File revision: 1017
+Project revision: 1020
+Project version: r1020

 ************************************************************************

@@ -45,7 +45,7 @@ function addon:InitEnchanting(RecipeDB)
 	recipecount = recipecount + 1
 	self:addTradeSkill(RecipeDB, 20026, 255, nil, 1, 7411)
 	self:addTradeFlags(RecipeDB, 20026, 1,2,4,21,22,23,24,25,26,27,28,29,30,36,40)
-	self:addTradeAcquire(RecipeDB, 20026, 1, 11189)
+	self:addTradeAcquire(RecipeDB, 20026, 2, 11189)

 	-- Enchant Bracer - Minor Health -- 7418
 	-- Trainer
diff --git a/RecipeDB/DB-Manual.lua b/RecipeDB/DB-Manual.lua
index 8542e2d..fc551cd 100644
--- a/RecipeDB/DB-Manual.lua
+++ b/RecipeDB/DB-Manual.lua
@@ -6,10 +6,10 @@ DB-Manual.lua

 Manual DB entries for all of AckisRecipeList

-File date: @file-date-iso@
-File revision: @file-revision@
-Project revision: @project-revision@
-Project version: @project-version@
+File date: 2008-11-03T23:25:42Z
+File revision: 1018
+Project revision: 1020
+Project version: r1020

 ****************************************************************************************

@@ -24,7 +24,7 @@ Project version: @project-version@
 	recipecount = recipecount + 1
 	self:addTradeSkill(RecipeDB, 20026, 255, nil, 1, 7411)
 	self:addTradeFlags(RecipeDB, 20026, 1,2,4,21,22,23,24,25,26,27,28,29,30,36,40)
-	self:addTradeAcquire(RecipeDB, 20026, 1, 11189)
+	self:addTradeAcquire(RecipeDB, 20026, 2, 11189)

 -- Smelting