From ebd1891257e929b07a009ae5da4fda30a61d769a Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Wed, 3 Feb 2021 16:43:15 -0500 Subject: [PATCH] Removed A+B 180 for DTET --- tetris/rulesets/dtet.lua | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/tetris/rulesets/dtet.lua b/tetris/rulesets/dtet.lua index ead8e45..36d4215 100644 --- a/tetris/rulesets/dtet.lua +++ b/tetris/rulesets/dtet.lua @@ -78,36 +78,6 @@ DTET.block_offsets = { DTET.wallkicks_cw = {{x=1, y=0}, {x=-1, y=0}, {x=0, y=1}, {x=1, y=1}, {x=-1, y=1}} DTET.wallkicks_ccw = {{x=-1, y=0}, {x=1, y=0}, {x=0, y=1}, {x=-1, y=1}, {x=1, y=1}} -function DTET:attemptRotate(new_inputs, piece, grid, initial) - local rot_dir = 0 - - if (new_inputs["rotate_180"]) or - (new_inputs["rotate_left"] and new_inputs["rotate_right"]) or - (new_inputs["rotate_left2"] and new_inputs["rotate_right2"]) then - rot_dir = self:get180RotationValue() - elseif (new_inputs["rotate_left"] or new_inputs["rotate_left2"]) then - rot_dir = 3 - elseif (new_inputs["rotate_right"] or new_inputs["rotate_right2"]) then - rot_dir = 1 - end - - if rot_dir == 0 then return end - if config.gamesettings.world_reverse == 3 or (self.world and config.gamesettings.world_reverse == 2) then - rot_dir = 4 - rot_dir - end - - local new_piece = piece:withRelativeRotation(rot_dir) - - if (grid:canPlacePiece(new_piece)) then - piece:setRelativeRotation(rot_dir) - self:onPieceRotate(piece, grid) - else - if not(initial and self.enable_IRS_wallkicks == false) then - self:attemptWallkicks(piece, new_piece, rot_dir, grid) - end - end -end - function DTET:attemptWallkicks(piece, new_piece, rot_dir, grid) local kicks