1
0
Fork 0

Make sure Valor Points always display a number instead of a blank.

This commit is contained in:
Andrew Tomaka 2011-09-06 12:23:46 -04:00
parent 0f35058848
commit 472a26ec14

View file

@ -95,11 +95,11 @@ function core:UpdateChores()
core:ResetInstances() core:ResetInstances()
core:ResetValorPoints() core:ResetValorPoints()
local _,_,_,earnedThisWeek = GetCurrencyInfo(396)
local realm = GetRealmName() local realm = GetRealmName()
local name = UnitName('player') local name = UnitName('player')
local vpReset = core:GetNextVPReset() local vpReset = core:GetNextVPReset()
local _,_,_,earnedThisWeek = GetCurrencyInfo(396)
--store Valor Points --store Valor Points
if vpReset ~= nil then if vpReset ~= nil then
@ -231,6 +231,9 @@ local function anchor_OnEnter(self)
local valorPoints, valorPointColor local valorPoints, valorPointColor
valorPoints = self.db.global[realm][name].valorPoints.points valorPoints = self.db.global[realm][name].valorPoints.points
if valorPoints == nil then
valorPoints = 0
end
if valorPoints == 980 then if valorPoints == 980 then
valorPointColor = flagColors['red'] valorPointColor = flagColors['red']
else else