From c434a3406b3177d4e9e5bc7335afce113b21527a Mon Sep 17 00:00:00 2001 From: Joe Z Date: Sun, 18 Jul 2021 21:23:50 -0400 Subject: [PATCH] Changed the 2-second rule to give the cool at exactly 2 seconds. --- tetris/modes/marathon_2020.lua | 2 +- tetris/modes/marathon_a3.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tetris/modes/marathon_2020.lua b/tetris/modes/marathon_2020.lua index aba483e..f852c32 100644 --- a/tetris/modes/marathon_2020.lua +++ b/tetris/modes/marathon_2020.lua @@ -354,7 +354,7 @@ function Marathon2020Game:updateSectionTimes(old_level, new_level) if ( self.section_status[section - 1] == "cool" and - self.secondary_section_times[section] < self.secondary_section_times[section - 1] + 120 and + self.secondary_section_times[section] <= self.secondary_section_times[section - 1] + 120 and self.secondary_section_times[section] < cool_cutoffs[self.delay_level] ) then sectionCool(section) diff --git a/tetris/modes/marathon_a3.lua b/tetris/modes/marathon_a3.lua index 1f20559..ec5fd1d 100644 --- a/tetris/modes/marathon_a3.lua +++ b/tetris/modes/marathon_a3.lua @@ -219,7 +219,7 @@ function MarathonA3Game:updateSectionTimes(old_level, new_level) table.insert(self.secondary_section_times, section_70_time) if section <= 9 and self.section_status[section - 1] == "cool" and - self.secondary_section_times[section] < self.secondary_section_times[section - 1] + 120 then + self.secondary_section_times[section] <= self.secondary_section_times[section - 1] + 120 then self.section_cool = true self.coolregret_message = "COOL!!" self.coolregret_timer = 300