Arika-SRS rulesets no longer lock immediately

This commit is contained in:
Ishaan Bhardwaj 2021-02-17 18:29:14 -05:00
parent 3947e9f02f
commit 1d73916b7c
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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