Merge pull request #35 from MarkGamed7794/origin/sound-effect-rework

Add some new behavior to sound effects
This commit is contained in:
Ishaan Bhardwaj
2021-10-17 11:42:45 -04:00
committed by GitHub
8 changed files with 86 additions and 46 deletions

View File

@@ -98,10 +98,12 @@ function Ruleset:attemptRotate(new_inputs, piece, grid, initial)
if (grid:canPlacePiece(new_piece)) then
piece:setRelativeRotation(rot_dir)
self:onPieceRotate(piece, grid)
playSE("rotate")
else
if not(initial and self.enable_IRS_wallkicks == false) then
self:attemptWallkicks(piece, new_piece, rot_dir, grid)
end
playSE("kick")
end
end