mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-25 11:49:03 -06:00
Fixed delay curve calculation in Marathon 2020
This commit is contained in:
parent
53c51c2062
commit
c5c4c4d95c
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user