From 9220d4c37d048bd20414523bd7fb5536740079e6 Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Thu, 18 Feb 2010 21:04:23 -0600 Subject: [PATCH] Re-split the basic stats out into separate patterns --- Regexps.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Regexps.lua b/Regexps.lua index ede71e6..179eee3 100644 --- a/Regexps.lua +++ b/Regexps.lua @@ -722,7 +722,12 @@ MultipleStatLines = { } SingleStatLines = { - {"^([+-]?%d+) ([^b]%a+)$", WeightsWatcher.statNumFirst}, + {"^([+-]?%d+) (armor)$", WeightsWatcher.statNumFirst}, + {"^([+-]?%d+) (agility)$", WeightsWatcher.statNumFirst}, + {"^([+-]?%d+) (intellect)$", WeightsWatcher.statNumFirst}, + {"^([+-]?%d+) (spirit)$", WeightsWatcher.statNumFirst}, + {"^([+-]?%d+) (stamina)$", WeightsWatcher.statNumFirst}, + {"^([+-]?%d+) (strength)$", WeightsWatcher.statNumFirst}, {"^the (block value) of your shield by (%d+)$", WeightsWatcher.statNameFirst}, @@ -866,7 +871,8 @@ SingleStatLines = { return WeightsWatcher.singleStatValueOnly(text, pattern, "mp5") end}, {"^([+-]?%d+) (%a[%a ]+ rating)$", WeightsWatcher.statNumFirst}, - {"^([+-]?%d+) (%a+ power)$", WeightsWatcher.statNumFirst}, + {"^([+-]?%d+) (attack power)$", WeightsWatcher.statNumFirst}, + {"^([+-]?%d+) (spell power)$", WeightsWatcher.statNumFirst}, {"^([+-]?%d+) (%a+ resistance)$", WeightsWatcher.statNumFirst}, {"^([+-]?%d+) (all resistances)$", WeightsWatcher.statNumFirst}, {"^([+-]?%d+) resist all$", -- 1.7.9.5