Fixed delay curve calculation in Marathon 2020

pull/24/head
Ishaan Bhardwaj 2021-07-11 15:38:38 -04:00
parent 53c51c2062
commit c5c4c4d95c
1 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ function Marathon2020Game:getTotalGrade()
end end
local function getSectionForLevel(level) local function getSectionForLevel(level)
if level < 2001 then if level < 2000 then
return math.floor(level / 100) + 1 return math.floor(level / 100) + 1
elseif level < 2020 then elseif level < 2020 then
return 20 return 20
@ -331,7 +331,7 @@ end
function Marathon2020Game:updateSectionTimes(old_level, new_level) function Marathon2020Game:updateSectionTimes(old_level, new_level)
function sectionCool(section) function sectionCool(section)
self.section_cool_count = self.section_cool_count + 1 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) self.delay_level = math.min(20, self.delay_level + 1)
end end
table.insert(self.section_status, "cool") table.insert(self.section_status, "cool")