Quantcast

Localized gem color names

Kevin Lyles [06-20-10 - 20:47]
Localized gem color names
Filename
Locales/enUS/gems.lua
WeightsWatcher.lua
diff --git a/Locales/enUS/gems.lua b/Locales/enUS/gems.lua
index a91b2e1..7ec2bfa 100644
--- a/Locales/enUS/gems.lua
+++ b/Locales/enUS/gems.lua
@@ -570,3 +570,15 @@ ww_gemDisplayNames = {
 	["Wicked Noble Topaz"] = "Wicked Noble Topaz",
 	["Wicked Pyrestone"] = "Wicked Pyrestone",
 }
+
+ww_gemColorDisplayNames = {
+	["blue"] = "Blue",
+	["green"] = "Green",
+	["meta"] = "Meta",
+	["orange"] = "Orange",
+	["prismatic"] = "Prismatic",
+	["purple"] = "Purple",
+	["red"] = "Red",
+	["yellow"] = "Yellow",
+	["N/A"] = "N/A",
+}
diff --git a/WeightsWatcher.lua b/WeightsWatcher.lua
index bb6674c..24f8644 100644
--- a/WeightsWatcher.lua
+++ b/WeightsWatcher.lua
@@ -654,7 +654,7 @@ function WeightsWatcher.displayItemStats(tooltip, ttname)
 					tooltip:AddLine("Gem Stats:")
 					for _, gems in pairs(itemInfo.gemStats) do
 						for _, gem in ipairs(gems) do
-							tooltip:AddLine("  " .. ww_gemDisplayNames[gem[2]] .. " (" .. gem[1] .. ")")
+							tooltip:AddLine("  " .. ww_gemDisplayNames[gem[2]] .. " (" .. ww_gemColorDisplayNames[gem[1]] .. ")")
 							for stat, value in pairs(gem[3]) do
 								tooltip:AddDoubleLine("    " .. stat, value)
 							end
@@ -711,10 +711,10 @@ function WeightsWatcher.displayItemStats(tooltip, ttname)
 									for _, gems in ipairs(gemStats) do
 										for i, gem in ipairs(gems) do
 											if #(gems) > 1 then
-												tooltip:AddDoubleLine("    (Option " .. i .. "/" .. #(gems) .. ") " .. ww_gemDisplayNames[gem[2]] .. " (" .. gem[1] .. ")", " ")
+												tooltip:AddDoubleLine("    (Option " .. i .. "/" .. #(gems) .. ") " .. ww_gemDisplayNames[gem[2]] .. " (" .. ww_gemColorDisplayNames[gem[1]] .. ")", " ")
 												alternateGemsExist = true
 											else
-												tooltip:AddDoubleLine("    Using " .. ww_gemDisplayNames[gem[2]] .. " (" .. gem[1] .. ")", " ")
+												tooltip:AddDoubleLine("    Using " .. ww_gemDisplayNames[gem[2]] .. " (" .. ww_gemColorDisplayNames[gem[1]] .. ")", " ")
 											end
 											if showIdealGemStats then
 												for stat, value in pairs(gem[3]) do