Some demon mode fixes

This commit is contained in:
Ishaan Bhardwaj 2020-10-30 13:09:49 -04:00
parent cca295066c
commit be59727ca5

View File

@ -167,6 +167,7 @@ function DemonModeGame:updateSectionTimes(old_level, new_level)
else else
self.level = math.min(new_level, 2500) self.level = math.min(new_level, 2500)
self.skip_failed = true self.skip_failed = true
self.grade = self.grade + 1
end end
-- record new section -- record new section
section_time = self.frames - self.section_start_time section_time = self.frames - self.section_start_time
@ -178,6 +179,7 @@ function DemonModeGame:updateSectionTimes(old_level, new_level)
self.level = 500 self.level = 500
self.game_over = true self.game_over = true
end end
self.grade = math.min(self.grade + 1, 4)
end end
else else
self.level = math.min(new_level, 2500) self.level = math.min(new_level, 2500)