From 36aca701b471809a5bc078c886502ac665790cc5 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sun, 10 Nov 2013 00:30:23 +0000 Subject: [PATCH] Add a simple regression test for the PaperDoll stats. Uncommenting the script registration adds a new script that may be selected with instructions for how to pass the regression test. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1142 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- conditions/PaperDoll.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/conditions/PaperDoll.lua b/conditions/PaperDoll.lua index 5d472ee..724ab71 100644 --- a/conditions/PaperDoll.lua +++ b/conditions/PaperDoll.lua @@ -227,3 +227,27 @@ do OvaleCondition:RegisterCondition("stamina", false, Stamina) OvaleCondition:RegisterCondition("strength", false, Strength) end + +do + local OvaleScripts = Ovale.OvaleScripts + + local name = "Regression: PaperDoll" + local code = [[ +# Add a separate icon for each paper-doll stat. +# Need to manually verify numbers against the in-game paper-doll. +# +AddIcon help=agility { Agility() } +AddIcon help=attackPower { AttackPower() } +AddIcon help=intellect { Intellect() } +AddIcon help=masteryEffect { MasteryEffect() } +AddIcon help=meleeCrit { MeleeCritChance() } +AddIcon help=rangedCrit { RangedCritChance() } +AddIcon help=spellCrit { SpellCritChance() } +AddIcon help=spellHaste { SpellHaste() } +AddIcon help=spellpower { Spellpower() } +AddIcon help=spirit { Spirit() } +AddIcon help=stamina { Stamina() } +AddIcon help=strength { Strength() } +]] + OvaleScripts:RegisterScript(nil, name, nil, code, "regression") +end -- 1.7.9.5