From 3fa0fb41519fff3875c7dc2b0fa2e1aac72880e4 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sun, 11 Apr 2021 18:33:18 -0400 Subject: [PATCH] C88 and C89 update --- tetris/modes/marathon_c88.lua | 2 +- tetris/modes/marathon_c89.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tetris/modes/marathon_c88.lua b/tetris/modes/marathon_c88.lua index cddbc23..de757dc 100644 --- a/tetris/modes/marathon_c88.lua +++ b/tetris/modes/marathon_c88.lua @@ -120,7 +120,6 @@ local score_table = {[0] = 0, 1, 4, 9, 20} function MarathonC88Game:updateScore(level, drop_bonus, cleared_lines) local bravo = self.grid:checkForBravo(cleared_lines) and 10 or 1 - self.score = self.score + score_table[cleared_lines] * 100 * self:getScoreMultiplier() * bravo self.level_lines = self.level_lines + cleared_lines self.lines = self.lines + cleared_lines if (cleared_lines >= 1) then self.line_clears = self.line_clears + 1 end @@ -130,6 +129,7 @@ function MarathonC88Game:updateScore(level, drop_bonus, cleared_lines) self.level_lines = 0 self.level_timer = 0 end + self.score = self.score + score_table[cleared_lines] * 100 * self:getScoreMultiplier() * bravo end function MarathonC88Game:drawGrid() diff --git a/tetris/modes/marathon_c89.lua b/tetris/modes/marathon_c89.lua index ca3055b..59a927a 100644 --- a/tetris/modes/marathon_c89.lua +++ b/tetris/modes/marathon_c89.lua @@ -167,9 +167,9 @@ end function MarathonC89Game:updateScore(level, drop_bonus, cleared_lines) if cleared_lines > 0 then - self.score = self.score + cleared_line_scores[cleared_lines] * (self.level + 1) self.lines = self.lines + cleared_lines self.level = self:getLevelForLines() + self.score = self.score + cleared_line_scores[cleared_lines] * (self.level + 1) self.line_clears = self.line_clears + 1 if cleared_lines == 4 then self.tetrises = self.tetrises + 1 end for i = 1, 4 do