mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 17:49:02 -06:00
Fixed T-floorkick behavior in Ti/ACE ARS
This commit is contained in:
parent
ef6d156d38
commit
cb2b693bcb
@ -47,6 +47,9 @@ function ARS:onPieceRotate(piece, grid)
|
|||||||
end
|
end
|
||||||
if piece.floorkick >= 1 then
|
if piece.floorkick >= 1 then
|
||||||
piece.floorkick = piece.floorkick + 1
|
piece.floorkick = piece.floorkick + 1
|
||||||
|
if piece:isDropBlocked(grid) then
|
||||||
|
piece.locked = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -34,6 +34,9 @@ function ARS:onPieceRotate(piece, grid)
|
|||||||
end
|
end
|
||||||
if piece.floorkick >= 1 then
|
if piece.floorkick >= 1 then
|
||||||
piece.floorkick = piece.floorkick + 1
|
piece.floorkick = piece.floorkick + 1
|
||||||
|
if piece:isDropBlocked(grid) then
|
||||||
|
piece.locked = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -74,8 +74,8 @@ function ARS:attemptWallkicks(piece, new_piece, rot_dir, grid)
|
|||||||
and grid:canPlacePiece(new_piece:withOffset({x=0, y=-1}))
|
and grid:canPlacePiece(new_piece:withOffset({x=0, y=-1}))
|
||||||
then
|
then
|
||||||
-- T floorkick
|
-- T floorkick
|
||||||
piece.floorkick = piece.floorkick + 1
|
|
||||||
self:onPieceRotate(piece, grid)
|
self:onPieceRotate(piece, grid)
|
||||||
|
piece.floorkick = piece.floorkick + 1
|
||||||
piece:setRelativeRotation(rot_dir):setOffset({x=0, y=-1})
|
piece:setRelativeRotation(rot_dir):setOffset({x=0, y=-1})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user