Skip to content

Commit

Permalink
be less bad at logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 3, 2017
1 parent c317251 commit c86bd88
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,13 @@ local function makescoregoal(i)
InitCommand=cmd(xy,200,goalrow2Y;halign,0;zoom,0.2;diffuse,getMainColor('positive');maxwidth,800),
SetCommand=function(self)
if update then
if sg and sg:IsAchieved() then
self:settext("Achieved: "..datetimetodate(sg:WhenAchieved()))
self:visible(true)
elseif sg:IsVacuous() then
if sg then
self:visible(true)
self:settext("Vacuous goal")
if sg:IsAchieved() then
self:settext("Achieved: "..datetimetodate(sg:WhenAchieved()))
else
self:settext("Vacuous goal")
end
else
self:visible(false)
end
Expand Down

0 comments on commit c86bd88

Please sign in to comment.