From a874dc5db31098ec66d354ed4af34d1b541db7c7 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Thu, 7 Jan 2010 00:57:03 -0600 Subject: [PATCH] Fixed some enchanting scrolls --- Regexps.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Regexps.lua b/Regexps.lua index 258dd44..9f5a693 100644 --- a/Regexps.lua +++ b/Regexps.lua @@ -95,13 +95,20 @@ SingleStatLines = { return setmetatable({[name] = tonumber(value)}, ww_normalStatsMetatable) end end}, + {"^Use: Permanently enchants? .* to give %+?(%d+) (%a[%a ]+).", + function(text, pattern) + local start, _, value, name = string.find(text, pattern) + if start then + return setmetatable({[name] = tonumber(value)}, ww_normalStatsMetatable) + end + end}, "^(%a[%a ]+) (%d+)", "^Equip: Increases (%a[%a ]+) by (%d+)%.", "^Equip: Increased (%a[%a ]+) %+(%d+)%.", "^Use: Increases (%a[%a ]+) by (%d+) for .*%.", "^Use: Permanently increase the (%a[%a ]+) of .* by (%d+)%.", - "^Use: Permanently enchant .* to increase (%a[%a ]+) by (%d+)%.", + "^Use: Permanently enchants? .* to increase (%a[%a ]+) by (%d+)%.", "^Use: When applied to your fishing pole, increases (Fishing) by (%d+) for ", -- TODO: figure out how to properly handle these -- 1.7.9.5