From f658ed63f2b8480b959ef24b85484d5a284e6934 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Fri, 16 Oct 2020 22:20:18 -0400 Subject: [PATCH] apparently I made ti-srs too strict --- tetris/rulesets/ti_srs.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tetris/rulesets/ti_srs.lua b/tetris/rulesets/ti_srs.lua index edd0b19..9cef0b6 100644 --- a/tetris/rulesets/ti_srs.lua +++ b/tetris/rulesets/ti_srs.lua @@ -160,6 +160,7 @@ end function SRS:onPieceCreate(piece, grid) piece.manipulations = 0 + piece.rotations = 0 end function SRS:onPieceDrop(piece, grid) @@ -170,7 +171,7 @@ function SRS:onPieceMove(piece, grid) piece.lock_delay = 0 -- move reset if piece:isDropBlocked(grid) then piece.manipulations = piece.manipulations + 1 - if piece.manipulations >= 8 then + if piece.manipulations >= 10 then piece.locked = true end end @@ -179,8 +180,8 @@ end function SRS:onPieceRotate(piece, grid) piece.lock_delay = 0 -- rotate reset if piece:isDropBlocked(grid) then - piece.manipulations = piece.manipulations + 1 - if piece.manipulations >= 8 then + piece.rotations = piece.rotations + 1 + if piece.rotations >= 8 then piece.locked = true end end