CRAP no longer locks in midair

(Phoenix is unhappy.)
This commit is contained in:
Ishaan Bhardwaj 2020-12-05 17:14:13 -05:00
parent 38a1dd2b1a
commit 2ee7d80626

View File

@ -137,23 +137,11 @@ end
function CRAP:onPieceMove(piece, grid)
CRAP:randomizeColours()
piece.lock_delay = 0 -- move reset
if piece:isDropBlocked(grid) then
piece.manipulations = piece.manipulations + 1
if piece.manipulations >= 10 then
piece.locked = true
end
end
end
function CRAP:onPieceRotate(piece, grid)
CRAP:randomizeColours()
piece.lock_delay = 0 -- rotate reset
if piece:isDropBlocked(grid) then
piece.rotations = piece.rotations + 1
if piece.rotations >= 8 then
piece.locked = true
end
end
end
function CRAP:get180RotationValue() return 2 end