From 472a26ec1452b57eb9e39190a5f6eba0f3b30f85 Mon Sep 17 00:00:00 2001 From: atomaka Date: Tue, 6 Sep 2011 12:23:46 -0400 Subject: [PATCH] Make sure Valor Points always display a number instead of a blank. --- ChoreTracker.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ChoreTracker.lua b/ChoreTracker.lua index 4dc9f78..4609652 100644 --- a/ChoreTracker.lua +++ b/ChoreTracker.lua @@ -95,12 +95,12 @@ function core:UpdateChores() core:ResetInstances() core:ResetValorPoints() - local _,_,_,earnedThisWeek = GetCurrencyInfo(396) local realm = GetRealmName() local name = UnitName('player') local vpReset = core:GetNextVPReset() - + local _,_,_,earnedThisWeek = GetCurrencyInfo(396) + --store Valor Points if vpReset ~= nil then self.db.global[realm][name].valorPoints = {} @@ -231,6 +231,9 @@ local function anchor_OnEnter(self) local valorPoints, valorPointColor valorPoints = self.db.global[realm][name].valorPoints.points + if valorPoints == nil then + valorPoints = 0 + end if valorPoints == 980 then valorPointColor = flagColors['red'] else