Major sound effect update (closes #7?)

Sound effects can still be changed, and #7 can still be reopened.
This commit is contained in:
Ishaan Bhardwaj
2020-12-05 20:30:59 -05:00
parent 1f686fb5d4
commit 4afe9f2bd4
11 changed files with 19 additions and 9 deletions

View File

@@ -197,7 +197,14 @@ function Ruleset:initializePiece(
}, self.block_offsets, 0, 0, data.skin, colours[data.shape], big)
self:onPieceCreate(piece)
if irs then self:rotatePiece(inputs, piece, grid, {}, true) end
if irs then
if inputs.rotate_left or inputs.rotate_left2 or
inputs.rotate_right or inputs.rotate_right2 or
inputs.rotate_180 then
playSE("irs")
end
self:rotatePiece(inputs, piece, grid, {}, true)
end
self:dropPiece(inputs, piece, grid, gravity, drop_speed, drop_locked, hard_drop_locked)
return piece
end