Ruleset refactoring!

This commit is contained in:
Ishaan Bhardwaj
2020-12-04 20:36:11 -05:00
parent 2b8b9d5084
commit d3b2b4c2d9
8 changed files with 17 additions and 656 deletions

View File

@@ -115,8 +115,8 @@ function Ruleset:attemptRotate(new_inputs, piece, grid, initial)
local new_piece = piece:withRelativeRotation(rot_dir)
if (grid:canPlacePiece(new_piece)) then
piece:setRelativeRotation(rot_dir)
self:onPieceRotate(piece, grid)
piece:setRelativeRotation(rot_dir)
else
if not(initial and self.enable_IRS_wallkicks == false) then
self:attemptWallkicks(piece, new_piece, rot_dir, grid)