From 2ee7d8062600994d2e9a83849840e61f8a8622cc Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sat, 5 Dec 2020 17:14:13 -0500 Subject: [PATCH] CRAP no longer locks in midair (Phoenix is unhappy.) --- tetris/rulesets/crap.lua | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tetris/rulesets/crap.lua b/tetris/rulesets/crap.lua index e10f25d..0313b8f 100644 --- a/tetris/rulesets/crap.lua +++ b/tetris/rulesets/crap.lua @@ -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