From 1dd46a11efbdb4fc191efc2f41c2031fdf95b750 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Fri, 4 Dec 2020 15:41:44 -0500 Subject: [PATCH] Fixed torikans giving you a green line --- tetris/modes/marathon_a3.lua | 2 +- tetris/modes/survival_a2.lua | 2 +- tetris/modes/survival_a3.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tetris/modes/marathon_a3.lua b/tetris/modes/marathon_a3.lua index b263927..c2ad30b 100644 --- a/tetris/modes/marathon_a3.lua +++ b/tetris/modes/marathon_a3.lua @@ -448,7 +448,7 @@ function MarathonA3Game:drawScoringInfo() love.graphics.setFont(font_3x5_3) love.graphics.printf(self.score, 240, 220, 90, "left") if self.roll_frames > 3238 then love.graphics.setColor(1, 0.5, 0, 1) - elseif self.clear then love.graphics.setColor(0, 1, 0, 1) end + elseif self.level >= 999 and self.clear then love.graphics.setColor(0, 1, 0, 1) end love.graphics.printf(self:getLetterGrade(), 240, 140, 90, "left") love.graphics.setColor(1, 1, 1, 1) love.graphics.printf(self.level, 240, 340, 40, "right") diff --git a/tetris/modes/survival_a2.lua b/tetris/modes/survival_a2.lua index 989f56c..6e4cff3 100644 --- a/tetris/modes/survival_a2.lua +++ b/tetris/modes/survival_a2.lua @@ -159,7 +159,7 @@ function SurvivalA2Game:drawScoringInfo() love.graphics.setFont(font_3x5_3) love.graphics.printf(self.score, text_x, 220, 90, "left") if self.roll_frames > 2968 then love.graphics.setColor(1, 0.5, 0, 1) - elseif self.clear then love.graphics.setColor(0, 1, 0, 1) end + elseif self.level >= 999 and self.clear then love.graphics.setColor(0, 1, 0, 1) end if self:getLetterGrade() ~= "" then love.graphics.printf(self:getLetterGrade(), text_x, 140, 90, "left") end love.graphics.setColor(1, 1, 1, 1) love.graphics.printf(self.level, text_x, 340, 40, "right") diff --git a/tetris/modes/survival_a3.lua b/tetris/modes/survival_a3.lua index 2038266..0edb4fd 100644 --- a/tetris/modes/survival_a3.lua +++ b/tetris/modes/survival_a3.lua @@ -243,7 +243,7 @@ function SurvivalA3Game:drawScoringInfo() love.graphics.setFont(font_3x5_3) if self.roll_frames > 3238 then love.graphics.setColor(1, 0.5, 0, 1) - elseif self.clear then love.graphics.setColor(0, 1, 0, 1) end + elseif self.level >= 1300 and self.clear then love.graphics.setColor(0, 1, 0, 1) end love.graphics.printf(getLetterGrade(math.floor(self.grade)), text_x, 140, 90, "left") love.graphics.setColor(1, 1, 1, 1) love.graphics.printf(self.score, text_x, 220, 90, "left")