Quantcast

Changed speed to melee weapon speed

Kevin Lyles [07-25-10 - 22:34]
Changed speed to melee weapon speed
Added melee and ranged weapon speeds to the list of tracked stats
Filename
Regexps.lua
WeightsWatcher.lua
defaults.lua
diff --git a/Regexps.lua b/Regexps.lua
index fea9594..a50d1fd 100644
--- a/Regexps.lua
+++ b/Regexps.lua
@@ -654,7 +654,7 @@ function WeightsWatcher.damageRange(textL, textR)
 	if stats and textR then
 		local start, _, speed = string.find(textR, "^speed (%d+%.?%d*)$")
 		if start then
-			stats["speed"] = tonumber(speed)
+			stats["melee weapon speed"] = tonumber(speed)
 		end
 	end
 	return stats
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index f4b73ec..bf414c7 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -1035,6 +1035,7 @@ local rangedConversions = {
 	["melee dps"] = "ranged dps",
 	["maximum melee weapon damage"] = "maximum ranged weapon damage",
 	["minimum melee weapon damage"] = "minimum ranged weapon damage",
+	["melee weapon speed"] = "ranged weapon speed",
 }

 function WeightsWatcher.getItemStats(link)
diff --git a/defaults.lua b/defaults.lua
index f4a011f..2dc83e4 100644
--- a/defaults.lua
+++ b/defaults.lua
@@ -34,6 +34,7 @@ ww_trackedStats = {
 		"Melee DPS",
 		"Minimum Melee Weapon Damage",
 		"Maximum Melee Weapon Damage",
+		"Melee Weapon Speed",
 	},
 	["Caster"] = {
 		"Intellect",
@@ -54,6 +55,7 @@ ww_trackedStats = {
 		"Ranged DPS",
 		"Minimum Ranged Weapon Damage",
 		"Maximum Ranged Weapon Damage",
+		"Ranged Weapon Speed",
 	},
 	["Meta Gem Stats"] = {
 		"Armor from Items (Percent)",