From 703ce66c42ec50c338919245c3666ff62c4d2440 Mon Sep 17 00:00:00 2001 From: Kirby703 <14858059+Kirby703@users.noreply.github.com> Date: Wed, 9 Feb 2022 23:48:09 -0500 Subject: [PATCH] fix 2s rule for cools --- tetris/modes/marathon_2020.lua | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/tetris/modes/marathon_2020.lua b/tetris/modes/marathon_2020.lua index 7994ecf..0bfab3b 100644 --- a/tetris/modes/marathon_2020.lua +++ b/tetris/modes/marathon_2020.lua @@ -352,18 +352,9 @@ function Marathon2020Game:updateSectionTimes(old_level, new_level) table.insert(self.section_times, section_time) self.section_start_time = self.frames - 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] < cool_cutoffs[self.delay_level] - ) then + if self.secondary_section_times[section] < cool_cutoffs[self.delay_level] and + (section == 1 or self.secondary_section_times[section] <= self.secondary_section_times[section - 1] + 120) then sectionCool(section) - elseif self.section_status[section - 1] == "cool" then - table.insert(self.section_status, "none") - elseif self.secondary_section_times[section] < cool_cutoffs[self.delay_level] then - sectionCool(section) - else - table.insert(self.section_status, "none") end if section > 5 then