From 935fceb9c8a780760a84ef63b4b211c57fd4f206 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Sun, 25 Jul 2010 17:34:31 -0500 Subject: [PATCH] changed ranged damage to ranged weapon damage in EnchantPreprocessLines --- Regexps.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Regexps.lua b/Regexps.lua index a728d02..3af84f4 100644 --- a/Regexps.lua +++ b/Regexps.lua @@ -226,7 +226,7 @@ local EnchantPreprocessLines = { {" melee weapon to do (%d+) additional points? of damage", " %1 melee damage"}, {" armor value ", " armor "}, {" a slight movement speed increase", " a minor movement speed increase"}, - {"^use: attaches a permanent scope to a bow or gun that increases its damage by ", "increases ranged damage by "}, + {"^use: attaches a permanent scope to a bow or gun that increases its damage by ", "increases ranged weapon damage by "}, {" resistance to (%a+) by ", " %1 resistance by "}, {" resistance to all schools of magic by ", " all resistances by "}, {" to all ", " all "}, @@ -1219,7 +1219,7 @@ ww_SingleStatLines = { {"^([+-]?%d+) (ranged attack power)$", WeightsWatcher.statNumFirst, {"equipEffect", "generic"}}, {"^([+-]?%d+) (all stats)$", WeightsWatcher.statNumFirst, {"elixir", "enchant", "generic", "useEffect"}}, {"^([+-]?%d+) to (all stats)$", WeightsWatcher.statNumFirst, {"generic"}}, - {"^([+-]?%d+) ranged damage$", + {"^([+-]?%d+) ranged weapon damage$", function(text, pattern) return WeightsWatcher.singleStatValueOnly(text, pattern, "average ranged weapon damage") + WeightsWatcher.singleStatValueOnly(text, pattern, "maximum ranged weapon damage") end, -- 1.7.9.5