Update some modes to new API provided by issue #31 of main repo

This commit is contained in:
Ishaan Bhardwaj
2021-10-16 20:38:31 -04:00
parent 6951104c61
commit 78b5dc4adf
3 changed files with 4 additions and 5 deletions

View File

@@ -240,7 +240,10 @@ function MarathonC99Game:onLineClear(cleared_row_count)
if self.level == 16 then
self.clear = true
self.grid:clear()
if self.used_randomizer.possible_pieces == 7 then
if table.equalvalues(
self.used_randomizer.possible_pieces,
{"I", "J", "L", "O", "S", "T", "Z"}
) then
self.used_randomizer = PowerOnSequence()
self.next_queue[1].shape = self.used_randomizer:nextPiece()
end