Quantcast

Handle the new meta gems

Kevin Lyles [03-02-13 - 20:05]
Handle the new meta gems
Filename
Locales/enUS/patterns-generic.lua
Locales/enUS/patterns.lua
Locales/enUS/stats.lua
defaults.lua
diff --git a/Locales/enUS/patterns-generic.lua b/Locales/enUS/patterns-generic.lua
index 1819d22..db49338 100644
--- a/Locales/enUS/patterns-generic.lua
+++ b/Locales/enUS/patterns-generic.lua
@@ -10,6 +10,8 @@ local GenericMatchLines = {
 local GenericPreprocessLines = {
 	-- items 31864 and 31872
 	{" & ", " and "},
+	-- items 95346 and 95347
+	{", and ", " and "},
 	-- item 28363
 	{"^([^,]+), ([^,]+)$", "%1 and %2"},
 	{" resist all$", " all resistances"},
diff --git a/Locales/enUS/patterns.lua b/Locales/enUS/patterns.lua
index dd4751d..4f6e419 100644
--- a/Locales/enUS/patterns.lua
+++ b/Locales/enUS/patterns.lua
@@ -651,6 +651,30 @@ ww_SingleStatLines = {
 	{"^([+-]?%d+) (%a+ damage to %a+)$", WeightsWatcher.statNumFirst, {"enchant"}},
 	-- item 38981
 	{"^([+-]?%d+) (attack power against undead)$", WeightsWatcher.statNumFirst, {"enchant"}},
+	{"^chance on melee or ranged hit to gain capacitance$",
+		function(text, pattern)
+			return WeightsWatcher.newStatTable({[text] = 1})
+		end,
+		{"generic"},
+	},
+	{"^chance on spell damage to gain 30%% spell haste$",
+		function(text, pattern)
+			return WeightsWatcher.newStatTable({[text] = 1})
+		end,
+		{"generic"},
+	},
+	{"^chance on beneficial spell to make your spells cost no mana for 4 sec%.$",
+		function(text, pattern)
+			return WeightsWatcher.newStatTable({[text] = 1})
+		end,
+		{"generic"},
+	},
+	{"^chance on being hit to gain 20%% reduction to physical damage taken$",
+		function(text, pattern)
+			return WeightsWatcher.newStatTable({[text] = 1})
+		end,
+		{"generic"},
+	},
 }

 ww_ItemInfoLines = {
diff --git a/Locales/enUS/stats.lua b/Locales/enUS/stats.lua
index 86e066e..80c9a11 100644
--- a/Locales/enUS/stats.lua
+++ b/Locales/enUS/stats.lua
@@ -25,6 +25,10 @@ ww_localizedStats = {
 	["block"] = "block",
 	["block value (percent)"] = "block value (percent)",
 	["blood draining"] = "blood draining",
+	["chance on being hit to gain 20% reduction to physical damage taken"] = "chance on being hit to gain 20% reduction to physical damage taken",
+	["chance on beneficial spell to make your spells cost no mana for 4 sec."] = "chance on beneficial spell to make your spells cost no mana for 4 sec.",
+	["chance on melee or ranged hit to gain capacitance"] = "chance on melee or ranged hit to gain capacitance",
+	["chance on spell damage to gain 30% spell haste"] = "chance on spell damage to gain 30% spell haste",
 	["chance to increase physical haste"] = "chance to increase physical haste",
 	["chance to increase spell haste"] = "chance to increase spell haste",
 	["chance to restore health on hit"] = "chance to restore health on hit",
@@ -178,6 +182,10 @@ ww_statDisplayNames = {
 	[ww_localizedStats["block"]] = "Block",
 	[ww_localizedStats["block value (percent)"]] = "Block Value (Percent)",
 	[ww_localizedStats["blood draining"]] = "Blood Draining",
+	[ww_localizedStats["chance on being hit to gain 20% reduction to physical damage taken"]] = "Chance on Being Hit to Gain 20% Reduction to Physical Damage Taken",
+	[ww_localizedStats["chance on beneficial spell to make your spells cost no mana for 4 sec."]] = "Chance on Beneficial Spell to Make Your Spells Cost no Mana for 4 sec.",
+	[ww_localizedStats["chance on melee or ranged hit to gain capacitance"]] = "Chance on Melee or Ranged Hit to Gain Capacitance",
+	[ww_localizedStats["chance on spell damage to gain 30% spell haste"]] = "Chance on Spell Damage to Gain 30% Spell Haste",
 	[ww_localizedStats["chance to increase physical haste"]] = "Chance to Increase Physical Haste",
 	[ww_localizedStats["chance to increase spell haste"]] = "Chance to Increase Spell Haste",
 	[ww_localizedStats["chance to restore health on hit"]] = "Chance to Restore Health on Hit",
diff --git a/defaults.lua b/defaults.lua
index 89aff2a..53d3171 100644
--- a/defaults.lua
+++ b/defaults.lua
@@ -62,6 +62,7 @@ ww_trackedStats = {
 			["rangedDamage"] = "ww_triggerFrame",
 		},
 		[ww_statCategories["Enchant/Meta Gem Effects"]] = {
+			"chance on melee or ranged hit to gain capacitance",
 			"chance to increase physical haste",
 			"weapon damage (percent)",
 			"weapon damage vs undead (percent)",
@@ -81,6 +82,7 @@ ww_trackedStats = {
 			"armor from items (percent)",
 			"average damage dealt on block",
 			"block value (percent)",
+			"chance on being hit to gain 20% reduction to physical damage taken",
 			"chance to restore health on hit",
 			"damage absorption (2% chance)",
 			"damage absorption (5% chance)",
@@ -106,8 +108,12 @@ ww_trackedStats = {
 			"holy spell damage",
 			"nature spell damage",
 			"shadow spell damage",
+			ww_statCategories["Enchant/Meta Gem Effects"],
 			"harmfulSpell",
 			["harmfulSpell"] = "ww_triggerFrame",
+			[ww_statCategories["Enchant/Meta Gem Effects"]] = {
+				"chance on spell damage to gain 30% spell haste",
+			},
 		},
 		[ww_statCategories["Healing"]] = {
 			"mana",
@@ -116,6 +122,7 @@ ww_trackedStats = {
 			ww_statCategories["Enchant/Meta Gem Effects"],
 			["helpfulSpell"] = "ww_triggerFrame",
 			[ww_statCategories["Enchant/Meta Gem Effects"]] = {
+				"chance on beneficial spell to make your spells cost no mana for 4 sec.",
 				"chance to restore mana on spellcast",
 --				"critical healing (percent)",
 				"mana (percent)",