Quantcast

Model prismatic sockets

Silversage of Eitrigg [10-26-11 - 14:27]
Model prismatic sockets
Filename
REAMDE
SageGearLevelTooltip.lua
diff --git a/REAMDE b/REAMDE
index 198ab93..c4ad749 100644
--- a/REAMDE
+++ b/REAMDE
@@ -35,8 +35,7 @@ can help improve SGA by providing better stats for that class.
      Feature Wish List
 --------------------------------------------------------------------------------

-1. Correctly account for meta-gem sockets, prismatic sockets, and cogwheel
-   sockets.
+1. Correctly account for meta-gem sockets, and cogwheel sockets.
 2. Dynamic stat weighting, so that stat weights adjust for available gear.
 3. Evaluate single items in context of existing gear set. For example, evaluate
    the improvement of equipping a certain item in the context of other items in
@@ -81,6 +80,12 @@ items when only one has a meta-socket.
 --------------------------------------------------------------------------------
      Versions
 --------------------------------------------------------------------------------
+v0.19 Handle prismatic sockets in the same way we're handling colored sockets.
+v0.18 Bug fix. Errors while calculating tooltip should not show stack trace.
+v0.17 Code refactor.
+v0.16 Minor tweaks to DK and paladin tank stats.
+v0.15 Trying wowi's auto-versioning.
+v0.14 Re-released using wowi packaging. No intended behavior changes.
 v0.13 Updated .toc version number
 v0.12 Gah. Made extraction correct.
 v0.11 Edits to REAMDE
diff --git a/SageGearLevelTooltip.lua b/SageGearLevelTooltip.lua
index a3fd009..51667e1 100644
--- a/SageGearLevelTooltip.lua
+++ b/SageGearLevelTooltip.lua
@@ -208,6 +208,8 @@ local BestReforgedEvaluator do
 		instance.coefficients.RedSocket = math.max(socketValue, instance.coefficients.RedSocket or 0)
 		instance.coefficients.BlueSocket = math.max(socketValue, instance.coefficients.BlueSocket or 0)
 		instance.coefficients.YellowSocket = math.max(socketValue, instance.coefficients.YellowSocket or 0)
+		instance.coefficients.PrismaticSocket
+		    = math.max(socketValue, instance.coefficients.PrismaticSocket or 0)
 	end

 	function class:_GetItemStats(itemLink)