From 3f146bef11338d7506830c8162b66083aec788fc Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Tue, 11 May 2010 14:45:29 -0500 Subject: [PATCH] Fixed several fishing items --- Regexps.lua | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/Regexps.lua b/Regexps.lua index 37101a2..c43dfdf 100644 --- a/Regexps.lua +++ b/Regexps.lua @@ -287,15 +287,21 @@ local EnchantAffixes = { } local FishingMatchLines = { - "^use: replace", - "^use: when applied to your fishing pole", - " increases? your skill in fishing ", + " fishing ", +} + +local FishingPreProcessLines = { + {" skill increased ", " "}, + {" for 10 min%. %(10 min cooldown%)$", ""}, } local FishingAffixes = { - "^use: replaces the fishing line on your fishing pole with a %a[%a ]+%a line, increasing +", - "^use: when applied to your fishing pole, increases +", - "^use: makes you slightly tipsy and increases your skill in +", + "^use: +", + "^equip: +", + "^replaces the fishing line on your fishing pole with a %a[%a ]+%a line, increasing +", + "^when applied to your fishing pole, increases +", + "^makes you slightly tipsy and increases your skill in +", + "^attach a lure to your equipped fishing pole, increasing +", "%.$", "utes$", " +3 min", @@ -456,7 +462,7 @@ EffectHandlers = { {FoodMatchLines, FoodIgnoreLines, FoodUnweightedLines, FoodPreprocessLines, FoodAffixes, parseStats, "food"}, {EnchantMatchLines, {}, EnchantUnweightedLines, EnchantPreprocessLines, EnchantAffixes, parseStats, "enchant"}, {ElixirMatchLines, {}, ElixirUnweightedLines, ElixirPreprocessLines, ElixirAffixes, parseStats, "elixir"}, - {FishingMatchLines, {}, {}, {}, FishingAffixes, parseStats, "fishing"}, + {FishingMatchLines, {}, {}, FishingPreProcessLines, FishingAffixes, parseStats, "fishing"}, {UseEffectMatchLines, UseEffectIgnoreLines, UseEffectUnweightedLines, UseEffectPreprocessLines, UseEffectAffixes, parseStats, "useEffect"}, {CooldownUseMatchLines, {}, {}, CooldownUsePreprocessLines, CooldownUseAffixes, function(text) local stat = WeightsWatcher.useEffect(text) if stat then return {useEffect = stat} end end, "cooldownUseEffect"}, } @@ -978,6 +984,7 @@ SingleStatLines = { -- profession skills {"^(fishing) skill by ([+-]?%d+)$", WeightsWatcher.statNameFirst, {"enchant", "fishing"}}, + {"^(fishing) by ([+-]?%d+)$", WeightsWatcher.statNameFirst, {"elixir", "enchant", "equipEffect", "fishing", "food", "generic", "socketBonus", "useEffect"}}, {"^(herbalism) skill by ([+-]?%d+)$", WeightsWatcher.statNameFirst, {"enchant"}}, {"^(mining) skill by ([+-]?%d+)$", WeightsWatcher.statNameFirst, {"enchant"}}, {"^(skinning) skill by (%d+)$", WeightsWatcher.statNameFirst, {"enchant"}}, -- 1.7.9.5