From ffaa7428b95c34f32e8c43803fe6be4d454d9d6d Mon Sep 17 00:00:00 2001 From: Ackis Date: Mon, 22 Dec 2008 16:52:14 +0000 Subject: [PATCH] Fix for some tailoring stuffz --- ARLDataminer.rb | 26 ++++++++++++++++++++++---- RecipeDB/ARL-Cook.lua | 1 - RecipeDB/ARL-Tailor.lua | 46 +++++++++++++++++++++++----------------------- 3 files changed, 45 insertions(+), 28 deletions(-) diff --git a/ARLDataminer.rb b/ARLDataminer.rb index 2c26c2e..8f04051 100644 --- a/ARLDataminer.rb +++ b/ARLDataminer.rb @@ -630,6 +630,7 @@ EOF flags = Array.new acquire = Array.new + ignorelist = Hash.new count = 0 @@ -648,6 +649,9 @@ EOF details = recipes[name] proflua.print("\t-- #{name} -- #{details[:spellid]}") + if ignorerecipe.include?(details[:spellid]) + proflua.print("\n\t-- Ignored") + end details[:method].split(",").each do |method| @@ -1308,6 +1312,10 @@ EOF end if ignorerecipe.include?(details[:spellid]) + ignorelist[details[:spellid]] = name + end + + if ignorerecipe.include?(details[:spellid]) proflua.print("\n\t--") else proflua.print("\n\t") @@ -1376,7 +1384,6 @@ EOF proflua.puts "\t-- No acquire information" $missingdataacquire << {:spellid => details[:spellid], :sname => name, :data => details, :sprof => profession} else - acquiredordered = acquire.sort_by { |entry| entry["id"] } temp = [] for id in %w(5 7 3 4 1 2 6 8) @@ -1404,6 +1411,17 @@ EOF puts "\nProcessing #{profession} data complete..." proflua.puts(manual) + + proflua.puts "\t-- Ignore Recipes:" + + ignorerecipe.each do |k| + if ignorelist[k] + proflua.puts "\t-- #{k} - #{ignorelist[k]}" + else + proflua.puts "\t-- #{k}" + end + end + proflua.puts "\treturn recipecount\n\nend" proflua.close @@ -4429,7 +4447,7 @@ cookmanual=< "Sharing the Knowledge", :faction => 0} - create_profession_db("./RecipeDB/ARL-Cook.lua","Cooking",recipes,maps,"InitCooking",cooking,[30047,57423,44438,45547,53056],cookingspeciallist,cookmanual,cookacquire) + create_profession_db("./RecipeDB/ARL-Cook.lua","Cooking",recipes,maps,"InitCooking",cooking,[57423,44438,45547,53056],cookingspeciallist,cookmanual,cookacquire) end @@ -5350,11 +5368,11 @@ def get_tailoring_list(recipes, maps) tailoringmanual=<