Fixed Demon Mode torikan madness

This commit is contained in:
Ishaan Bhardwaj 2020-10-18 21:54:24 -04:00
parent d946b17e13
commit a5158e0994
2 changed files with 9 additions and 2 deletions

View File

@ -166,11 +166,18 @@ function DemonModeGame:updateSectionTimes(old_level, new_level)
self.section_tetris_count = 0
else
self.level = math.min(new_level, 2500)
self.skip_failed = true
end
-- record new section
section_time = self.frames - self.section_start_time
table.insert(self.section_times, section_time)
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
else
self.level = math.min(new_level, 2500)

View File

@ -4,7 +4,7 @@ local Ruleset = require 'tetris.rulesets.ruleset'
local ARS = Ruleset:extend()
ARS.name = "ACE-ARS2"
ARS.hash = "ArikaACE"
ARS.hash = "ArikaACE2"
ARS.spawn_positions = {
I = { x=5, y=2 },