diff --git a/SageGearLevelTooltip.lua b/SageGearLevelTooltip.lua
index a67f3d7..cfb1789 100644
--- a/SageGearLevelTooltip.lua
+++ b/SageGearLevelTooltip.lua
@@ -187,7 +187,7 @@ local BestReforgedEvaluator do
local class = newClass{name="BestReforgedEvaluator", super=CachableEvaluator}
local reforgings = Reforgings:New()
- local reforgingLabel = {label = "", r=0.6, g=0.6, b=0.6}
+ local reforgingLabel = {label = "Reforge", r=0.6, g=0.6, b=0.6}
function class:_Initialize(instance, label, coefficients) --self is class
self.super:_Initialize(instance)
@@ -317,6 +317,12 @@ local SageGearLevelTooltipUpdater do
end
return self;
end
+
+ function class:AddSelfEvaluator(className, e)
+ return (className == select(2, UnitClass('player')))
+ and self:AddEvaluator(e)
+ or self
+ end
function class:AddEvaluator(e)
return self:AddItemCommenter(EvaluatorToLineAdderAdaptor:New(e))
@@ -351,29 +357,48 @@ SageGearLevelTooltipUpdater:New(methodsToHook)
:AddItemCommenter(ItemLevelIdCommenter:New())
+ --DK
+ :AddSelfEvaluator("DEATHKNIGHT", BestReforgedEvaluator:New({label = "Blood DK", r=1.0, g=0.2, b=0.4},
+ {MeleeDPS=500, Mastery=100, Stamina=100, Agility=69, Dodge=50, Parry=43, Expertise=38,
+ Strength=31, Armor=18, Haste=16, Hit=16, AdditionalArmor=11})
+ :Cache())
+ :AddSelfEvaluator("DEATHKNIGHT", BestReforgedEvaluator:New({label = "Frost DK", r=0.2, g=0.4, b=1.0},
+ {Strength=100, MeleeDPS=100, Hit=43, Expertise=41, Haste=37, Mastery=35, AP=32, Crit=26})
+ :Cache())
+ :AddSelfEvaluator("DEATHKNIGHT", BestReforgedEvaluator:New({label = "Unholy DK", r=0.6, g=0.6, b=0.6},
+ {Strength=100, MeleeDPS=100, Hit=43, Expertise=41, Haste=37, Mastery=35, AP=32, Crit=26})
+ :Cache())
+
+ --Druid
+ :AddSelfEvaluator("DRUID", BestReforgedEvaluator:New({label = "Moonkin", r=0.3, g=0.3, b=1.0},
+ {Hit=100, Master=100, SP=66, Haste=54, Crit=43, Intellect=22, Spirit=22})
+ :Cache())
+ :AddSelfEvaluator("DRUID", BestReforgedEvaluator:New({label = "Kitty", r=1.0, g=1.0, b=0.5},
+ {DPS=151, Agility=100, Strength=78, AP=37, Mastery=35, Haste=32, Expertise=29, Hit=28, Crit=28})
+ :Cache())
+ :AddSelfEvaluator("DRUID", BestReforgedEvaluator:New({label = "Bear", r=1.0, g=0.4, b=0.4},
+ {Stamina=100, Armor=75, Agility=48, Dodge=41, AdditionalArmor=21, Mastery=16, Crit=13,
+ Strength=10, Expertise=10, Health=7, FeralAP=5, AP=5, Hit=5, Haste=1})
+ :Cache())
+ :AddSelfEvaluator("DRUID", BestReforgedEvaluator:New({label = "Tree", r=0.3, g=0.3, b=1.0},
+ {SP=100, Mastery=100, Haste=57, Intellect=51, Spirit=32, Crit=11})
+ :Cache())
+
--Warlock
--- :AddEvaluator(BestReforgedEvaluator:New({label = "Wk.Aff", r=1.0, g=0.2, b=1.0},
--- {Hit=100, Master=100, SP=72, Haste=61, Crit=38, Spirit=34, Intellect=15})
--- :Cache())
--- :AddEvaluator(BestReforgedEvaluator:New({label = "Wk.Dem", r=0.8, g=0.2, b=1.0},
--- {Hit=100, Master=100, Haste=50, SP=45, Crit=31, Spirit=29, Intellect=13})
--- :Cache())
+ :AddSelfEvaluator("WARLOCK", BestReforgedEvaluator:New({label = "Aff Warlock", r=1.0, g=0.2, b=1.0},
+ {Hit=100, Master=100, SP=72, Haste=61, Crit=38, Spirit=34, Intellect=15})
+ :Cache())
+ :AddSelfEvaluator("WARLOCK", BestReforgedEvaluator:New({label = "Dem Warlock", r=0.8, g=0.2, b=1.0},
+ {Hit=100, Master=100, Haste=50, SP=45, Crit=31, Spirit=29, Intellect=13})
+ :Cache())
-- Hunter
--- :AddEvaluator(BestReforgedEvaluator:New({label = "Hr.Su", r=1.0, g=0.7, b=0.3},
--- {RangedDPS=181, Mastery=100, Hit=100, Agility=76, Crit=42, Intellect=35, Haste=31})
--- :Cache())
-
- -- Worlock
--- :AddEvaluator(BestReforgedEvaluator:New({label = "Wk.Aff", r=0.4, g=1.0, b=0.2},
--- {Hit=100, Mastery=100, SP=72, Haste=61, Crit=38, Spirit=34, Intellect=15})
--- :Cache())
--- :AddEvaluator(BestReforgedEvaluator:New({label = "Wk.Demo", r=0.8, g=0.2, b=1.0},
--- {Hit=100, Mastery=100, Haste=50, SP=45, Crit=31, Spirit=29, Intellect=13})
--- :Cache())
+ :AddSelfEvaluator("HUNTER", BestReforgedEvaluator:New({label = "SV Hunter", r=1.0, g=0.7, b=0.3},
+ {RangedDPS=181, Mastery=100, Hit=100, Agility=76, Crit=42, Intellect=35, Haste=31})
+ :Cache())
-- Warrior
- :AddEvaluator(BestReforgedEvaluator:New({label = "W.Best", r=0.8, g=0.8, b=1.0},
+ :AddSelfEvaluator("WARRIOR", BestReforgedEvaluator:New({label = "Prot Warrior", r=0.8, g=0.8, b=1.0},
{Strength=48, Agility=67, Stamina=100, Hit=10, Crit=7, Haste=1, AP=1, Expertise=19, Armor=6, Dodge=90, Parry=67})
:Cache())
@@ -389,12 +414,3 @@ SageGearLevelTooltipUpdater:New(methodsToHook)
---- :AddEvaluator(AsReforgedPawnEvaluator:New({label = "M.Reforged", r=0.8, g=1, b=0.6},
---- {Mastery=1})
---- :Cache())
--- :AddEvaluator(BestReforgedEvaluator:New({label = "W.Best", r=0.8, g=0.8, b=1.0},
--- {Strength=48, Agility=67, Stamina=100, Hit=10, Crit=7, Haste=1, AP=1, Expertise=19, Armor=6, Dodge=90, Parry=67})
--- :Cache())
----- :AddEvaluator(BestReforgedEvaluator:New({label = "D.Best", r=0.8, g=1, b=0.6},
----- {Dodge=1})
----- :Cache())
----- :AddEvaluator(BestReforgedEvaluator:New({label = "Hunter.SV", r=1.0, g=0.8, b=0.4},
----- {RangedDPS=181, Hit=100, Master=100, Agility=76, Crit=42, Intellect=35, Haste=31})
----- :Cache())