From ab698782bf99d456b28072d59e4364ab42af27de Mon Sep 17 00:00:00 2001 From: Kirby703 <14858059+Kirby703@users.noreply.github.com> Date: Fri, 30 Jul 2021 18:52:30 -0400 Subject: [PATCH] phantom mania x cools fixes 2s rule --- tetris/modes/phantom_mania_nx.lua | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tetris/modes/phantom_mania_nx.lua b/tetris/modes/phantom_mania_nx.lua index acac4af..060d1f8 100644 --- a/tetris/modes/phantom_mania_nx.lua +++ b/tetris/modes/phantom_mania_nx.lua @@ -220,15 +220,10 @@ function PhantomManiaNXGame:updateSectionTimes(old_level, new_level) elseif old_level % 100 < 70 and new_level % 100 >= 70 then local old_section = math.floor(old_level / 100) table.insert(self.secondary_section_times, section_time) - if ( - (( - self.last_section_cool and - section_time < ( - self.secondary_section_times[old_section] + 120 - ) - ) or not self.last_section_cool) and - section_time <= cool_cutoffs[old_section] - ) then + if section_time <= cool_cutoffs[old_section] and ( + section_time < (self.secondary_section_times[old_section] + 120) or + old_section == 0 ) + then self.last_section_cool = true self.coolregret_message = "COOL!!" self.coolregret_timer = 300 @@ -370,4 +365,4 @@ function PhantomManiaNXGame:drawScoringInfo() end end -return PhantomManiaNXGame \ No newline at end of file +return PhantomManiaNXGame