mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 16:59:03 -06:00
Compare commits
No commits in common. "c5c4c4d95ca13e3b1749f4907c2314817ef77e31" and "7dbfe2305907b1ca4e9beefb4a1b5026b4344af8" have entirely different histories.
c5c4c4d95c
...
7dbfe23059
@ -84,6 +84,7 @@ function Marathon2020Game:getLineClearDelay()
|
||||
end
|
||||
|
||||
function Marathon2020Game:getLockDelay()
|
||||
--[[
|
||||
if self.delay_level < 6 then return 30
|
||||
elseif self.delay_level < 7 then return 26
|
||||
elseif self.delay_level < 8 then return 22
|
||||
@ -95,6 +96,7 @@ function Marathon2020Game:getLockDelay()
|
||||
elseif self.delay_level < 19 then return 10
|
||||
elseif self.delay_level < 20 then return 9
|
||||
else return 8 end
|
||||
]] return 1
|
||||
end
|
||||
|
||||
function Marathon2020Game:getGravity()
|
||||
@ -154,11 +156,11 @@ function Marathon2020Game:advanceOneFrame()
|
||||
end
|
||||
|
||||
local cool_cutoffs = {
|
||||
[0] = frameTime(0,45,00),
|
||||
frameTime(0,41,50), frameTime(0,38,50), frameTime(0,35,00), frameTime(0,32,50), frameTime(0,29,20),
|
||||
frameTime(0,27,20), frameTime(0,24,80), frameTime(0,22,80), frameTime(0,20,60), frameTime(0,19,60),
|
||||
frameTime(0,19,40), frameTime(0,19,40), frameTime(0,18,40), frameTime(0,18,20), frameTime(0,16,20),
|
||||
frameTime(0,16,20), frameTime(0,16,20), frameTime(0,16,20), frameTime(0,16,20), frameTime(0,15,20)
|
||||
frameTime(0,45,00), frameTime(0,41,50), frameTime(0,38,50), frameTime(0,35,00), frameTime(0,32,50),
|
||||
frameTime(0,29,20), frameTime(0,27,20), frameTime(0,24,80), frameTime(0,22,80), frameTime(0,20,60),
|
||||
frameTime(0,19,60), frameTime(0,19,40), frameTime(0,19,40), frameTime(0,18,40), frameTime(0,18,20),
|
||||
frameTime(0,16,20), frameTime(0,16,20), frameTime(0,16,20), frameTime(0,16,20), frameTime(0,16,20),
|
||||
frameTime(0,15,20)
|
||||
}
|
||||
|
||||
local levels_for_cleared_rows = { 1, 2, 4, 6 }
|
||||
@ -254,7 +256,7 @@ function Marathon2020Game:getTotalGrade()
|
||||
end
|
||||
|
||||
local function getSectionForLevel(level)
|
||||
if level < 2000 then
|
||||
if level < 2001 then
|
||||
return math.floor(level / 100) + 1
|
||||
elseif level < 2020 then
|
||||
return 20
|
||||
@ -331,7 +333,7 @@ end
|
||||
function Marathon2020Game:updateSectionTimes(old_level, new_level)
|
||||
function sectionCool(section)
|
||||
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)
|
||||
end
|
||||
table.insert(self.section_status, "cool")
|
||||
@ -352,25 +354,23 @@ function Marathon2020Game:updateSectionTimes(old_level, new_level)
|
||||
table.insert(self.section_times, section_time)
|
||||
self.section_start_time = self.frames
|
||||
|
||||
if section > 5 then self.delay_level = math.min(20, self.delay_level + 1) end
|
||||
self:checkTorikan(section)
|
||||
self:checkClear(new_level)
|
||||
|
||||
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]
|
||||
self.secondary_section_times[section] < cool_cutoffs[section]
|
||||
) 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
|
||||
elseif self.secondary_section_times[section] < cool_cutoffs[section] then
|
||||
sectionCool(section)
|
||||
else
|
||||
table.insert(self.section_status, "none")
|
||||
end
|
||||
|
||||
if section > 5 then
|
||||
self.delay_level = math.min(20, self.delay_level + 1)
|
||||
end
|
||||
self:checkTorikan(section)
|
||||
self:checkClear(new_level)
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user