Quantcast

Fixed several (non-manual) enchants (handle melee damage to beasts, etc)

Kevin Lyles [06-04-11 - 03:21]
Fixed several (non-manual) enchants (handle melee damage to beasts, etc)
Filename
Locales/enUS/patterns-enchants.lua
Locales/enUS/patterns.lua
Locales/enUS/stats.lua
diff --git a/Locales/enUS/patterns-enchants.lua b/Locales/enUS/patterns-enchants.lua
index d011aec..1c7550f 100644
--- a/Locales/enUS/patterns-enchants.lua
+++ b/Locales/enUS/patterns-enchants.lua
@@ -11,11 +11,8 @@ local EnchantMatchLines = {
 }

 local EnchantUnweightedLines = {
-	" sometimes ",
-	" often ",
-	" damage to ",
-	" occasionally ",
-	" against ",
+	" skilled engineer ",
+	" engineering skill ",
 	" lasts for ",
 }

diff --git a/Locales/enUS/patterns.lua b/Locales/enUS/patterns.lua
index 2391f82..eb14dec 100644
--- a/Locales/enUS/patterns.lua
+++ b/Locales/enUS/patterns.lua
@@ -641,6 +641,9 @@ ww_SingleStatLines = {
 		end,
 		{"enchant"},
 	},
+	{"^([+-]?%d+) (%a+ damage to %a+)$", WeightsWatcher.statNumFirst, {"enchant"}},
+	-- item 38981
+	{"^([+-]?%d+) (attack power against undead)$", WeightsWatcher.statNumFirst, {"enchant"}},
 }

 ww_ItemInfoLines = {
diff --git a/Locales/enUS/stats.lua b/Locales/enUS/stats.lua
index d0b7b37..cb7a698 100644
--- a/Locales/enUS/stats.lua
+++ b/Locales/enUS/stats.lua
@@ -13,6 +13,7 @@ ww_localizedStats = {
 	["armor from items (percent)"] = "armor from items (percent)",
 -- 	["armor penetration rating"] = "armor penetration rating",
 	["attack power"] = "attack power",
+	["attack power against undead"] = "attack power against undead",
 	["avalanche"] = "avalanche",
 	["average damage dealt on block"] = "average damage dealt on block",
 	["average melee weapon damage"] = "average melee weapon damage",
@@ -81,6 +82,8 @@ ww_localizedStats = {
 	["maximum melee weapon damage"] = "maximum melee weapon damage",
 	["maximum ranged weapon damage"] = "maximum ranged weapon damage",
 	["melee critical strike rating"] = "melee critical strike rating",
+	["melee damage to beasts"] = "melee damage to beasts",
+	["melee damage to elementals"] = "melee damage to elementals",
 	["melee dps"] = "melee dps",
 	["melee weapon speed"] = "melee weapon speed",
 	["mending"] = "mending",
@@ -142,6 +145,7 @@ ww_statDisplayNames = {
 	[ww_localizedStats["armor (percent)"]] = "Armor (Percent)",
 	[ww_localizedStats["armor from items (percent)"]] = "Armor from Items (Percent)",
 -- 	[ww_localizedStats["armor penetration rating"]] = "Armor Penetration Rating",
+	[ww_localizedStats["attack power against undead"]] = "Attack Power Against Undead",
 	[ww_localizedStats["attack power"]] = "Attack Power",
 	[ww_localizedStats["avalanche"]] = "Avalanche",
 	[ww_localizedStats["average damage dealt on block"]] = "Average Damage Dealt on Block",
@@ -211,6 +215,8 @@ ww_statDisplayNames = {
 	[ww_localizedStats["maximum melee weapon damage"]] = "Maximum Melee Weapon Damage",
 	[ww_localizedStats["maximum ranged weapon damage"]] = "Maximum Ranged Weapon Damage",
 	[ww_localizedStats["melee critical strike rating"]] = "Melee Critical Strike Rating",
+	[ww_localizedStats["melee damage to beasts"]] = "Melee Damage to Beasts",
+	[ww_localizedStats["melee damage to elementals"]] = "Melee Damage to Elementals",
 	[ww_localizedStats["melee dps"]] = "Melee DPS",
 	[ww_localizedStats["melee weapon speed"]] = "Melee Weapon Speed",
 	[ww_localizedStats["mending"]] = "Mending",