Quantcast

Fixed enchant formulas

Kevin Lyles [06-04-11 - 04:02]
Fixed enchant formulas
Filename
Locales/enUS/patterns-enchant-items.lua
defaults.lua
diff --git a/Locales/enUS/patterns-enchant-items.lua b/Locales/enUS/patterns-enchant-items.lua
index 1fbc70a..1526020 100644
--- a/Locales/enUS/patterns-enchant-items.lua
+++ b/Locales/enUS/patterns-enchant-items.lua
@@ -23,7 +23,7 @@ local PreprocessLines = {
 	{"^use: permanently enchant a melee weapon to cause your harmful spells to sometimes increase haste rating by 250%.  requires a level 60 or higher item%.$", "black magic"},
 	{"^use: permanently enchants a weapon to sometimes grant blade warding when striking an enemy%.  blade warding increases your parry rating by 200 and inflicts 600 to 800 damage on your next parry%.  lasts 10 sec%.\r\n\r\nthis enchantment requires the wielder is at least level 75%.$", "blade ward"},
 	{"^use: permanently enchants your weapon to sometimes grant blood reserve when striking an enemy or inflicting damage with bleed attacks%.  when you fall below 35%% health, blood reserve restores 360 to 440 health%.  lasts 20 sec and stacks up to 5 times%.\r\n\r\nthis enchantment requires the wielder is at least level 75%.$", "blood draining"},
-	{"^use: permanently enchant a weapon to sometimes heal you when damaging an enemy with spells and melee attacks%.  requires a level 300 or higher item.", "mending"},
+	{"^use: permanently enchant a weapon to sometimes heal you when damaging an enemy with spells and melee attacks%.  requires a level 300 or higher item%.$", "mending"},
 	{"^use: permanently enchant a weapon to often deal 532 to 618 nature damage to an enemy damaged by your spells or struck by your melee attacks%.  requires a level 300 or higher item%.$", "avalanche"},
 	{"^use: permanently enchant a melee weapon to sometimes disrupt elementals when struck by your melee attacks, dealing arcane damage and silencing them for 5 sec%.  requires a level 300 or higher item%.$", "elemental slayer"},
 	{"^use: permanently enchant a melee weapon to sometimes increase haste rating by 450 for 12 sec when healing or dealing spell or melee damage%.  requires a level 300 or higher item%.$", "hurricane"},
@@ -33,6 +33,27 @@ local PreprocessLines = {
 	{"^use: permanently enchant a weapon to sometimes increase attack power by 1000 for 12 sec when striking in melee%.  requires a level 300 or higher item%.$", "landslide"},
 	{"^use: attaches a permanent scope to a bow or gun that sometimes increases ranged attack power by 800 for 10 sec when dealing damage with ranged attacks%.\r\n\r\nattaching this scope to a ranged weapon causes it to become soulbound%.$", "gnomish x-ray scope"},
 	{"^use: attaches an pyrium spike to your shield that sometimes deals 210 to 350 damage when you block with it%.\r\n\r\nattaching an pyrium spike to your shield causes it to become soulbound%.$", "pyrium shield spike"},
+	{"^use: teaches you how to permanently enchant a melee weapon to cause your damaging spells and melee weapon hits to occasionally inflict additional frost damage and slow the target%.  requires a level 60 or higher item%.$", "deathfrost"},
+	{"^use: teaches you how to permanently enchant a melee weapon to cause your harmful spells to sometimes increase haste rating%.  requires a level 60 or higher item%.$", "black magic"},
+	{"^use: teaches you how to permanently enchant a melee weapon to have a chance of reducing movement speed and doing additional damage against giants%.  requires a level 60 or higher item%.$", "giant slayer"},
+	{"^use: teaches you how to permanently enchant a melee weapon to have a chance of stunning and doing additional damage against demons%.$", "demonslaying"},
+	{"^use: teaches you how to permanently enchant a melee weapon to make your spells sometimes restore 100 mana to nearby party members%.  requires a level 35 or higher item%.$", "spellsurge"},
+	{"^use: teaches you how to permanently enchant a melee weapon to occasionally grant you 120 critical strike rating%. requires a level 60 or higher item%.$", "executioner"},
+	{"^use: teaches you how to permanently enchant a melee weapon to occasionally heal nearby party members for 180 to 300 when attacking in melee%.  requires a level 35 or higher item%.$", "battlemaster"},
+	{"^use: teaches you how to permanently enchant a melee weapon to occasionally increase agility by 120 and attack speed slightly%.  requires a level 35 or higher item%.$", "mongoose"},
+	{"^use: teaches you how to permanently enchant a melee weapon to often chill the target, reducing their movement and attack speed%.  has a reduced effect for players above level 60%.$", "icy chill"},
+	{"^use: teaches you how to permanently enchant a melee weapon to often heal for 75 to 125 and increase strength by 100 for 15 sec%. when attacking in melee%. has a reduced effect for players above level 60%.$", "crusader"},
+	{"^use: teaches you how to permanently enchant a melee weapon to often inflict a curse on the target, inflicting shadow damage and reducing their melee damage%.$", "unholy weapon"},
+	{"^use: teaches you how to permanently enchant a melee weapon to often steal life from the enemy and give it to the wielder%.  has a reduced effect for players above level 60%.$", "lifestealing"},
+	{"^use: teaches you how to permanently enchant a melee weapon to often strike for 40 additional fire damage%.$", "fiery weapon"},
+	{"^use: teaches you how to permanently enchant a melee weapon to sometimes grant blood reserve when striking an enemy or inflicting damage with bleed attacks, healing you when your health is low%.  enchantment requires level 75%.$", "blood draining"},
+	{"^use: teaches you how to permanently enchant a melee weapon to sometimes heal the wielder when striking in melee%.  requires a level 60 or higher item%.$", "lifeward"},
+	{"^use: teaches you how to permanently enchant a melee weapon to sometimes increase your attack power at the cost of reduced armor%.  requires a level 60 or higher item%.$", "berserking"},
+	{"^use: teaches you how to permanently enchant a melee weapon to sometimes inflict fire damage%.  requires a level 60 or higher item%.$", "icebreaker"},
+	{"^use: teaches you how to permanently enchant a weapon to sometimes grant blade warding when striking an enemy, increasing parry rating and inflicting damage on your next parry%.  enchantment requires level 75%.$", "blade ward"},
+	{"^use: teaches you how to permanently enchant a weapon to sometimes increase attack power when striking with melee attacks%.  requires a level 300 or higher item%.$", "landslide"},
+	{"^use: teaches you how to permanently enchant a weapon to sometimes increase dodge rating and movement speed when striking in melee%.  requires a level 300 or higher item%.$", "windwalk"},
+	{"^use: teaches you how to permanently enchant a weapon to sometimes increase spell power when dealing damage or healing with spells%.  requires a level 300 or higher item%.$", "power torrent"},
 }

 local MatchLines = {}
diff --git a/defaults.lua b/defaults.lua
index 66bb380..227d312 100644
--- a/defaults.lua
+++ b/defaults.lua
@@ -38,6 +38,12 @@ ww_trackedStats = {
 			"melee weapon speed",
 			"meleeDamage",
 			["meleeDamage"] = "ww_triggerFrame",
+			ww_statCategories["Enchant/Meta Gem Effects"],
+			[ww_statCategories["Enchant/Meta Gem Effects"]] = {
+				"attack power against undead",
+				"melee damage to beasts",
+				"melee damage to elementals",
+			},
 		},
 		[ww_statCategories["Ranged DPS"]] = {
 			"ranged attack power",