phantom mania x cools

fixes 2s rule
pull/4/head
Kirby703 2021-07-30 18:52:30 -04:00 committed by GitHub
parent 88f847bf88
commit ab698782bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 10 deletions

View File

@ -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
return PhantomManiaNXGame