mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:29:02 -06:00
Fixed Demon Mode torikan madness
This commit is contained in:
parent
d946b17e13
commit
a5158e0994
@ -166,11 +166,18 @@ function DemonModeGame:updateSectionTimes(old_level, new_level)
|
|||||||
self.section_tetris_count = 0
|
self.section_tetris_count = 0
|
||||||
else
|
else
|
||||||
self.level = math.min(new_level, 2500)
|
self.level = math.min(new_level, 2500)
|
||||||
|
self.skip_failed = true
|
||||||
end
|
end
|
||||||
-- record new section
|
-- record new section
|
||||||
section_time = self.frames - self.section_start_time
|
section_time = self.frames - self.section_start_time
|
||||||
table.insert(self.section_times, section_time)
|
table.insert(self.section_times, section_time)
|
||||||
self.section_start_time = self.frames
|
self.section_start_time = self.frames
|
||||||
|
else
|
||||||
|
self.level = math.min(new_level, 2500)
|
||||||
|
if self.skip_failed and new_level >= 500 then
|
||||||
|
self.level = 500
|
||||||
|
self.game_over = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
self.level = math.min(new_level, 2500)
|
self.level = math.min(new_level, 2500)
|
||||||
|
@ -3,8 +3,8 @@ local Ruleset = require 'tetris.rulesets.ruleset'
|
|||||||
|
|
||||||
local ARS = Ruleset:extend()
|
local ARS = Ruleset:extend()
|
||||||
|
|
||||||
ARS.name = "ACE-ARS 2"
|
ARS.name = "ACE-ARS2"
|
||||||
ARS.hash = "ArikaACE"
|
ARS.hash = "ArikaACE2"
|
||||||
|
|
||||||
ARS.spawn_positions = {
|
ARS.spawn_positions = {
|
||||||
I = { x=5, y=2 },
|
I = { x=5, y=2 },
|
||||||
|
Loading…
Reference in New Issue
Block a user