Arika-SRS rulesets no longer lock immediately
parent
3947e9f02f
commit
1d73916b7c
|
@ -25,7 +25,7 @@ function SRS:onPieceRotate(piece, grid, upward)
|
|||
piece.lock_delay = 0 -- rotate reset
|
||||
if upward or piece:isDropBlocked(grid) then
|
||||
piece.manipulations = piece.manipulations + 1
|
||||
if piece:isDropBlocked(grid) then
|
||||
if piece.manipulations >= self.MANIPULATIONS_MAX and piece:isDropBlocked(grid) then
|
||||
piece.locked = true
|
||||
end
|
||||
end
|
||||
|
|
|
@ -93,7 +93,7 @@ function SRS:onPieceRotate(piece, grid, upward)
|
|||
piece.lock_delay = 0 -- rotate reset
|
||||
if upward or piece:isDropBlocked(grid) then
|
||||
piece.rotations = piece.rotations + 1
|
||||
if piece:isDropBlocked(grid) then
|
||||
if piece.rotations >= self.ROTATIONS_MAX and piece:isDropBlocked(grid) then
|
||||
piece.locked = true
|
||||
end
|
||||
end
|
||||
|
|
|
@ -186,7 +186,7 @@ function SRS:onPieceRotate(piece, grid, upward)
|
|||
piece.lock_delay = 0 -- rotate reset
|
||||
if upward or piece:isDropBlocked(grid) then
|
||||
piece.rotations = piece.rotations + 1
|
||||
if piece:isDropBlocked(grid) then
|
||||
if piece.rotations >= self.ROTATIONS_MAX and piece:isDropBlocked(grid) then
|
||||
piece.locked = true
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue