From c5c4c4d95ca13e3b1749f4907c2314817ef77e31 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sun, 11 Jul 2021 15:38:38 -0400 Subject: [PATCH] Fixed delay curve calculation in Marathon 2020 --- tetris/modes/marathon_2020.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tetris/modes/marathon_2020.lua b/tetris/modes/marathon_2020.lua index f341136..25f29de 100644 --- a/tetris/modes/marathon_2020.lua +++ b/tetris/modes/marathon_2020.lua @@ -254,7 +254,7 @@ function Marathon2020Game:getTotalGrade() end local function getSectionForLevel(level) - if level < 2001 then + if level < 2000 then return math.floor(level / 100) + 1 elseif level < 2020 then return 20 @@ -331,7 +331,7 @@ end function Marathon2020Game:updateSectionTimes(old_level, new_level) function sectionCool(section) self.section_cool_count = self.section_cool_count + 1 - if section < 10 then + if section <= 10 then self.delay_level = math.min(20, self.delay_level + 1) end table.insert(self.section_status, "cool")