mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-11-22 03:59:02 -06:00
Update some modes to new API provided by issue #31 of main repo
This commit is contained in:
parent
6951104c61
commit
78b5dc4adf
@ -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
|
||||
|
@ -90,8 +90,6 @@ PAIRS.colourscheme = {
|
||||
[18] = "R"
|
||||
}
|
||||
|
||||
PAIRS.pieces = 18
|
||||
|
||||
PAIRS.block_offsets = {
|
||||
[1]={
|
||||
{ {x=-2, y=0}, {x=-1, y=0}, {x=0, y=0}, {x=1, y=0}, {x=2, y=0} },
|
||||
|
@ -33,8 +33,6 @@ function RandomPieces:generateBlockOffsets()
|
||||
return { { offsets, offsets, offsets, offsets } }
|
||||
end
|
||||
|
||||
RandomPieces.pieces = 1
|
||||
|
||||
RandomPieces.spawn_positions = {
|
||||
{ x=4, y=5 }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user