Quantcast

Ackis Recipe List:

Ackis [10-29-08 - 15:28]
Ackis Recipe List:
- Add some specialization flags to engineering and the dataminer, finishing off ticket 150 (Please verify)
- Added some more boss name exceptions to the dataminer
- Fixed a logic error for boss names in the dataminer
- Dry-coded (Compiles with luac -p)
Filename
ARLDataminer.rb
Locals/LocalStrings-enUS.lua
RecipeDB/ARL-Engineer.lua
diff --git a/ARLDataminer.rb b/ARLDataminer.rb
index 8df1fd6..aa80515 100644
--- a/ARLDataminer.rb
+++ b/ARLDataminer.rb
@@ -703,6 +703,18 @@ EOF
 				flags.delete(30)
 				flags.concat(specialcase[details[:spellid]][:type])

+			when "specialty"
+
+				if not details[:specialty]
+
+					details[:specialty] = specialcase[details[:spellid]][:type]
+
+				else
+
+					proflua.print("\n\t-- Warning: Manually overriding specialty for a recipe that already has one.\n\t--")
+
+				end
+
 			end

 		end
@@ -1025,6 +1037,8 @@ EOF
 				else

 					lookup_lua.print("L[\"#{v[:name]}\"], ")
+					# Add the name to the list of localization strings
+					$localstring << v[:name]

 				end

@@ -1087,10 +1101,10 @@ EOF
 				end
 				lookup_lua.print("\n")

-			end
+				# Add the name to the list of localization strings
+				$localstring << v[:name]

-			# Add the name to the list of localization strings
-			$localstring << v[:name]
+			end

 		end

@@ -1127,28 +1141,76 @@ $proftable = {"Alchemy" 			=> 2259,
 				"Runeforging"		=> 28481
 				}

-$bosslist = ["Ras Frostwhisper","Onyxia","Gyth","General Drakkisath","Balnazzar","Goraluk Anvilcrack","Cannon Master Willey","Magmadar","Garr","Golemagg the Incinerator","Gehennas","Shazzrah","Lord Kazzak","Pusillin","Darkmaster Gandling","Mijan","Azuregos","Golem Lord Argelmach","Pyromancer Loregrain","Lord Roccor","Overmaster Pyron","Grizzle","Ribbly Screwspigot","Attumen the Huntsman"]
+$bosslist = ["Anetheron","Archimonde","Azuregos","Baron Geddon","Baron Rivendare",
+	"Chrono Lord Deja","Emeriss","Emperor Vek\'nilash","Garr","Gehennas","Golem Lord Argelmach",
+	"Golemagg the Incinerator","Goraluk Anvilcrack","Gyth","Hex Lord Malacrass","High Botanist Freywinn",
+	"Hydromancer Thespia","Ras Frostwhisper","Onyxia","General Drakkisath","Balnazzar","Cannon Master Willey",
+	"Magmadar","Shazzrah","Lord Kazzak","Pusillin","Darkmaster Gandling","Mijan","Pyromancer Loregrain",
+	"Lord Roccor","Overmaster Pyron","Grizzle","Ribbly Screwspigot","Attumen the Huntsman"]

 #TODO: for these functions, how can I do it so I can set a debug parameter which would only cause First Aid to run?

-$debug = false
+$debug = true

 if $debug

-	firstaid = recipes.get_firstaid_list
-	faspecaillist = {
-		27033 => {:id => 12},
-		27032 => {:id => 7, :type => 1}
+	#firstaid = recipes.get_firstaid_list
+	#faspecaillist = {
+	#	27033 => {:id => 12},
+	#	27032 => {:id => 7, :type => 1}
+#		}
+	#create_profession_db("./RecipeDB/ARL-FirstAid.lua","First Aid",recipes,maps,"InitFirstAid",firstaid,[30021],faspecaillist,[45545, 45546, 51801])
+
+	eng = recipes.get_engineering_list
+	engspecaillist = {
+		21940 => {:id => 7, :type => 1},
+		26416 => {:id => 7, :type => 2},
+		26417 => {:id => 7, :type => 2},
+		26418 => {:id => 7, :type => 2},
+		26420 => {:id => 7, :type => 2},
+		26421 => {:id => 7, :type => 2},
+		26422 => {:id => 7, :type => 2},
+		26423 => {:id => 7, :type => 2},
+		26424 => {:id => 7, :type => 2},
+		26425 => {:id => 7, :type => 2},
+		26426 => {:id => 7, :type => 2},
+		26427 => {:id => 7, :type => 2},
+		26428 => {:id => 7, :type => 2},
+		26442 => {:id => 7, :type => 2},
+		26443 => {:id => 7, :type => 2},
+		40274 => {:id => "class", :type => [25, 29]},
+		41311 => {:id => "class", :type => [25]},
+		41312 => {:id => "class", :type => [25, 29]},
+		41314 => {:id => "class", :type => [23, 27]},
+		41315 => {:id => "class", :type => [27]},
+		41316 => {:id => "class", :type => [27]},
+		41317 => {:id => "class", :type => [22, 28]},
+		41318 => {:id => "class", :type => [22]},
+		41319 => {:id => "class", :type => [22]},
+		41320 => {:id => "class", :type => [24, 26, 29]},
+		41321 => {:id => "class", :type => [26]},
+		12899 => {:id => "specialty", :type => 20219},
+		12895 => {:id => "specialty", :type => 20219},
+		15633 => {:id => "specialty", :type => 20219},
+		12902 => {:id => "specialty", :type => 20219},
+		12897 => {:id => "specialty", :type => 20219},
+		12903 => {:id => "specialty", :type => 20219},
+		12905 => {:id => "specialty", :type => 20219},
+		12906 => {:id => "specialty", :type => 20219},
+		12907 => {:id => "specialty", :type => 20219},
+		12759 => {:id => "specialty", :type => 20219},
+		30568 => {:id => "specialty", :type => 20219},
+		30570 => {:id => "specialty", :type => 20219},
 		}
-	create_profession_db("./RecipeDB/ARL-FirstAid.lua","First Aid",recipes,maps,"InitFirstAid",firstaid,[30021],faspecaillist,[45545, 45546, 51801])
+	create_profession_db("./RecipeDB/ARL-Engineer.lua","Engineering",recipes,maps,"InitEngineering",eng,[30343,30342,30349,30561,30549,12722,12720,12900,12719,12904],engspecaillist,[53280,53281])

-	create_lookup_db("./RecipeDB/ARL-Trainer.lua","Trainer","TrainerDB","InitTrainer",$trainers,maps,[])
+	#create_lookup_db("./RecipeDB/ARL-Trainer.lua","Trainer","TrainerDB","InitTrainer",$trainers,maps,[])

-	create_lookup_db("./RecipeDB/ARL-Vendor.lua","Vendor","VendorDB","InitVendor",$vendors,maps,[])
+	#create_lookup_db("./RecipeDB/ARL-Vendor.lua","Vendor","VendorDB","InitVendor",$vendors,maps,[])

-	create_lookup_db("./RecipeDB/ARL-Mob.lua","Monster","MobDB","InitMob",$monsters,maps,[])
+	#create_lookup_db("./RecipeDB/ARL-Mob.lua","Monster","MobDB","InitMob",$monsters,maps,[])

-	create_lookup_db("./RecipeDB/ARL-Quest.lua","Quest","QuestDB","InitQuest",$quests,maps,[])
+	#create_lookup_db("./RecipeDB/ARL-Quest.lua","Quest","QuestDB","InitQuest",$quests,maps,[])

 else

@@ -1224,6 +1286,18 @@ else
 		41319 => {:id => "class", :type => [22]},
 		41320 => {:id => "class", :type => [24, 26, 29]},
 		41321 => {:id => "class", :type => [26]},
+		12899 => {:id => "specialty", :type => 20219},
+		12895 => {:id => "specialty", :type => 20219},
+		15633 => {:id => "specialty", :type => 20219},
+		12902 => {:id => "specialty", :type => 20219},
+		12897 => {:id => "specialty", :type => 20219},
+		12903 => {:id => "specialty", :type => 20219},
+		12905 => {:id => "specialty", :type => 20219},
+		12906 => {:id => "specialty", :type => 20219},
+		12907 => {:id => "specialty", :type => 20219},
+		12759 => {:id => "specialty", :type => 20219},
+		30568 => {:id => "specialty", :type => 20219},
+		30570 => {:id => "specialty", :type => 20219},
 		}
 	create_profession_db("./RecipeDB/ARL-Engineer.lua","Engineering",recipes,maps,"InitEngineering",eng,[30343,30342,30349,30561,30549,12722,12720,12900,12719,12904],engspecaillist,[53280,53281])

diff --git a/Locals/LocalStrings-enUS.lua b/Locals/LocalStrings-enUS.lua
index 83c9509..d99cdd3 100644
--- a/Locals/LocalStrings-enUS.lua
+++ b/Locals/LocalStrings-enUS.lua
@@ -34,7 +34,6 @@ L["Andre Firebeard"] = true
 L["Andrew Hilbert"] = true
 L["Andrion Darkspinner"] = true
 L["Androd Fadran"] = true
-L["Anetheron"] = true
 L["Anger Guard"] = true
 L["Anguished Highborne"] = true
 L["Annora"] = true
@@ -52,7 +51,6 @@ L["Arcane Aberration"] = true
 L["Arcane Protector"] = true
 L["Arcanist Sheynathren"] = true
 L["Arcatraz Sentinel"] = true
-L["Archimonde"] = true
 L["Aresella"] = true
 L["Argent Quartermaster Hasana"] = true
 L["Argent Quartermaster Lightspark"] = true
@@ -73,7 +71,6 @@ L["Auchenai Monk"] = true
 L["Auctioneer Wabang"] = true
 L["Avian Darkhawk"] = true
 L["Azgalor"] = true
-L["Azuregos"] = true
 L["Balai Lok'Wein"] = true
 L["Bale"] = true
 L["Balgaras the Foul"] = true
@@ -85,8 +82,6 @@ L["Barbaric Battlements"] = true
 L["Barbecued Buzzard Wings"] = true
 L["Barbed Lasher"] = true
 L["Barim Spilthoof"] = true
-L["Baron Geddon"] = true
-L["Baron Rivendare"] = true
 L["Bash'ir Arcanist"] = true
 L["Bash'ir Raider"] = true
 L["Bash'ir Spell-Thief"] = true
@@ -164,7 +159,6 @@ L["Cenarion Hold Infantry"] = true
 L["Charred Ancient"] = true
 L["Chaw Stronghide"] = true
 L["Christoph Jeffcoat"] = true
-L["Chrono Lord Deja"] = true
 L["Clarise Gnarltree"] = true
 L["Cleft Scorpid"] = true
 L["Cliff Breaker"] = true
@@ -300,8 +294,6 @@ L["Eldara Dawnrunner"] = true
 L["Eldrin"] = true
 L["Elixir of Pain"] = true
 L["Elynna"] = true
-L["Emeriss"] = true
-L["Emperor Vek'nilash"] = true
 L["Emrul Riknussun"] = true
 L["Enchanted Thorium Platemail: Volume I"] = true
 L["Enchanted Thorium Platemail: Volume II"] = true
@@ -362,11 +354,9 @@ L["Gambarinka"] = true
 L["Gan'arg Analyzer"] = true
 L["Gargantuan Abyssal"] = true
 L["Gargantuan Ooze"] = true
-L["Garr"] = true
 L["Gaston"] = true
 L["Gearcutter Cogspinner"] = true
 L["Gearing Redridge"] = true
-L["Gehennas"] = true
 L["Gelanthis"] = true
 L["Gelman Stonehand"] = true
 L["General Drakkisath"] = true
@@ -390,9 +380,6 @@ L["Glutinous Ooze"] = true
 L["Glyx Brewright"] = true
 L["Gnaz Blunderflame"] = true
 L["Godan"] = true
-L["Golem Lord Argelmach"] = true
-L["Golemagg the Incinerator"] = true
-L["Goraluk Anvilcrack"] = true
 L["Gordunni Back-Breaker"] = true
 L["Gordunni Elementalist"] = true
 L["Gordunni Head-Splitter"] = true
@@ -419,7 +406,6 @@ L["Grumnus Steelshaper"] = true
 L["Grutah"] = true
 L["Guillaume Sorouy"] = true
 L["Gurubashi Champion"] = true
-L["Gyth"] = true
 L["Haalrun"] = true
 L["Haferet"] = true
 L["Hagrus"] = true
@@ -436,9 +422,7 @@ L["Harn Longcast"] = true
 L["Heavy War Golem"] = true
 L["Heldan Galesong"] = true
 L["Helenia Olden"] = true
-L["Hex Lord Malacrass"] = true
 L["Hgarth"] = true
-L["High Botanist Freywinn"] = true
 L["High Enchanter Bardolan"] = true
 L["Highland Fleshstalker"] = true
 L["Hillsbrad Tailor"] = true
@@ -449,7 +433,6 @@ L["Horns of Frenzy"] = true
 L["Hula'mahi"] = true
 L["Humphry"] = true
 L["Hurnak Grimmord"] = true
-L["Hydromancer Thespia"] = true
 L["Illidari Watcher"] = true
 L["Imperial Plate Belt"] = true
 L["Imperial Plate Boots"] = true
@@ -579,8 +562,6 @@ L["Logannas"] = true
 L["Logistics Officer Ulrike"] = true
 L["Lokhtos Darkbargainer"] = true
 L["Loolruna"] = true
-L["Lord Kazzak"] = true
-L["Lord Roccor"] = true
 L["Lorelae Wintersong"] = true
 L["Lorokeem"] = true
 L["Lucan Cordell"] = true
diff --git a/RecipeDB/ARL-Engineer.lua b/RecipeDB/ARL-Engineer.lua
index 7430bb8..abe848e 100644
--- a/RecipeDB/ARL-Engineer.lua
+++ b/RecipeDB/ARL-Engineer.lua
@@ -940,7 +940,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Flags: All classes, Item BoP, Recipe BoP, Armor, Trinket,
 	-- Item Stats:
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 12759, 240, 10645, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 12759, 240, 10645, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 12759, 1,3,21,22,23,24,25,26,27,28,29,30,37,41,47,63)
 	self:addTradeAcquire(RecipeDB, 12759, 1, 7406, 1, 7944)

@@ -958,7 +959,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Flags: All classes, Item BoE, Recipe BoP,
 	-- Item Stats:
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 12895, 205, 10713, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 12895, 205, 10713, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 12895, 3,21,22,23,24,25,26,27,28,29,30,36,41)
 	-- No acquire information

@@ -968,7 +970,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Item Stats: Caster DPS,
 	-- Item Stats: val9id3val9id5val45id6val11id19val11id20
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 12897, 210, 10545, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 12897, 210, 10545, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 12897, 1,3,21,22,23,24,25,26,27,28,29,30,37,41,47,54,56)
 	self:addTradeAcquire(RecipeDB, 12897, 1, 7406, 1, 7944)

@@ -977,7 +980,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Flags: All classes, Item BoE, Recipe BoP, Armor, Trinket,
 	-- Item Stats:
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 12899, 205, 10716, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 12899, 205, 10716, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 12899, 1,3,21,22,23,24,25,26,27,28,29,30,36,41,47,63)
 	self:addTradeAcquire(RecipeDB, 12899, 1, 7406, 1, 7944)

@@ -995,7 +999,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Flags: All classes, Item BoE, Recipe BoP, Armor, Trinket,
 	-- Item Stats:
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 12902, 210, 10720, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 12902, 210, 10720, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 12902, 1,3,21,22,23,24,25,26,27,28,29,30,36,41,47,63)
 	self:addTradeAcquire(RecipeDB, 12902, 1, 7406, 1, 7944)

@@ -1005,7 +1010,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Item Stats:
 	-- Item Stats: val6id3val66id6
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 12903, 215, 10721, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 12903, 215, 10721, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 12903, 1,3,21,22,23,24,25,26,27,28,29,30,36,41,47,57)
 	self:addTradeAcquire(RecipeDB, 12903, 1, 7406, 1, 7944)

@@ -1024,7 +1030,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Item Stats:
 	-- Item Stats: val41id6
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 12905, 225, 10724, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 12905, 225, 10724, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 12905, 1,3,21,22,23,24,25,26,27,28,29,30,36,41,47,56)
 	self:addTradeAcquire(RecipeDB, 12905, 1, 7406, 1, 7944)

@@ -1033,7 +1040,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Flags: All classes, Item BoP, Recipe BoP, Armor, Trinket,
 	-- Item Stats:
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 12906, 230, 10725, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 12906, 230, 10725, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 12906, 1,3,21,22,23,24,25,26,27,28,29,30,37,41,47,63)
 	self:addTradeAcquire(RecipeDB, 12906, 1, 7406, 1, 7944)

@@ -1043,7 +1051,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Item Stats:
 	-- Item Stats: val14id5val50id6
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 12907, 235, 10726, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 12907, 235, 10726, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 12907, 1,3,21,22,23,24,25,26,27,28,29,30,36,41,47,56)
 	self:addTradeAcquire(RecipeDB, 12907, 1, 7406, 1, 7944)

@@ -1089,7 +1098,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Flags: All classes, Item BoP, Recipe BoP,
 	-- Item Stats:
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 15633, 205, 11826, 2, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 15633, 205, 11826, 2, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 15633, 11,21,22,23,24,25,26,27,28,29,30,37,41)
 	self:addTradeAcquire(RecipeDB, 15633, 3, 1964)

@@ -2063,7 +2073,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Flags: All classes, Item BoE, Recipe BoP,
 	-- Item Stats:
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 30568, 315, 23841, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 30568, 315, 23841, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 30568, 1,3,21,22,23,24,25,26,27,28,29,30,36,41)
 	self:addTradeAcquire(RecipeDB, 30568, 1, 7406, 1, 7944)

@@ -2084,7 +2095,8 @@ function addon:InitEngineering(RecipeDB)
 	-- Item Stats:
 	-- Item Stats: val21id3val223id6
 	recipecount = recipecount + 1
-	self:addTradeSkill(RecipeDB, 30570, 340, 23825, 1, 4036)
+	-- Recipe Specialty of 20219
+	self:addTradeSkill(RecipeDB, 30570, 340, 23825, 1, 4036, 20219)
 	self:addTradeFlags(RecipeDB, 30570, 1,3,21,22,23,24,25,26,27,28,29,30,36,41,47,56)
 	self:addTradeAcquire(RecipeDB, 30570, 1, 7406, 1, 7944)