Ti and ACE floorkick fix

This commit is contained in:
Ishaan Bhardwaj 2020-11-21 21:48:45 -05:00
parent 7abb861446
commit 7b496d9412
3 changed files with 25 additions and 4 deletions

View File

@ -163,13 +163,16 @@ end
function ARS:onPieceDrop(piece, grid)
piece.lock_delay = 0 -- step reset
if piece.floorkick >= 2 and piece:isDropBlocked(grid) then
piece.locked = true
end
end
function ARS:onPieceMove(piece, grid)
piece.lock_delay = 0 -- move reset
if piece:isDropBlocked(grid) then
piece.manipulations = piece.manipulations + 1
if piece.manipulations >= 127 then
if piece.manipulations >= 128 then
piece.locked = true
end
end
@ -179,10 +182,13 @@ function ARS:onPieceRotate(piece, grid)
piece.lock_delay = 0 -- rotate reset
if piece:isDropBlocked(grid) then
piece.manipulations = piece.manipulations + 1
if piece.manipulations >= 127 then
if piece.manipulations >= 128 then
piece.locked = true
end
end
if piece.floorkick >= 1 then
piece.floorkick = piece.floorkick + 1
end
end
function ARS:get180RotationValue()

View File

@ -150,13 +150,16 @@ end
function ARS:onPieceDrop(piece, grid)
piece.lock_delay = 0 -- step reset
if piece.floorkick >= 2 and piece:isDropBlocked(grid) then
piece.locked = true
end
end
function ARS:onPieceMove(piece, grid)
piece.lock_delay = 0 -- move reset
if piece:isDropBlocked(grid) then
piece.manipulations = piece.manipulations + 1
if piece.manipulations >= 127 then
if piece.manipulations >= 128 then
piece.locked = true
end
end
@ -166,10 +169,13 @@ function ARS:onPieceRotate(piece, grid)
piece.lock_delay = 0 -- rotate reset
if piece:isDropBlocked(grid) then
piece.manipulations = piece.manipulations + 1
if piece.manipulations >= 127 then
if piece.manipulations >= 128 then
piece.locked = true
end
end
if piece.floorkick >= 1 then
piece.floorkick = piece.floorkick + 1
end
end
function ARS:get180RotationValue()

View File

@ -149,6 +149,15 @@ end
function ARS:onPieceDrop(piece, grid)
piece.lock_delay = 0 -- step reset
if piece.floorkick >= 2 and piece:isDropBlocked(grid) then
piece.locked = true
end
end
function ARS:onPieceRotate(piece, grid)
if piece.floorkick >= 1 then
piece.floorkick = piece.floorkick + 1
end
end
function ARS:get180RotationValue()