mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:59:03 -06:00
Fixed the piece lock SFX where applicable, in modes that had their own lock functions.
This commit is contained in:
parent
c614e9c4cd
commit
78ae0ae671
@ -169,6 +169,7 @@ function SurvivalCKGame:onLineClear(cleared_row_count)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SurvivalCKGame:onPieceLock(piece, cleared_row_count)
|
function SurvivalCKGame:onPieceLock(piece, cleared_row_count)
|
||||||
|
self.super:onPieceLock()
|
||||||
if cleared_row_count == 0 then self:advanceBottomRow(1) end
|
if cleared_row_count == 0 then self:advanceBottomRow(1) end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -114,6 +114,7 @@ function MarathonC89Game:advanceOneFrame()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function MarathonC89Game:onPieceLock()
|
function MarathonC89Game:onPieceLock()
|
||||||
|
self.super:onPieceLock()
|
||||||
self.score = self.score + self.drop_bonus
|
self.score = self.score + self.drop_bonus
|
||||||
self.drop_bonus = 0
|
self.drop_bonus = 0
|
||||||
end
|
end
|
||||||
|
@ -177,6 +177,7 @@ function PhantomMania2Game:onLineClear(cleared_row_count)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function PhantomMania2Game:onPieceLock(piece, cleared_row_count)
|
function PhantomMania2Game:onPieceLock(piece, cleared_row_count)
|
||||||
|
self.super:onPieceLock()
|
||||||
if cleared_row_count == 0 then self:advanceBottomRow(1) end
|
if cleared_row_count == 0 then self:advanceBottomRow(1) end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -84,6 +84,7 @@ function Race40Game:advanceOneFrame()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Race40Game:onPieceLock()
|
function Race40Game:onPieceLock()
|
||||||
|
self.super:onPieceLock()
|
||||||
self.pieces = self.pieces + 1
|
self.pieces = self.pieces + 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -160,6 +160,7 @@ function SurvivalA3Game:onLineClear(cleared_row_count)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SurvivalA3Game:onPieceLock(piece, cleared_row_count)
|
function SurvivalA3Game:onPieceLock(piece, cleared_row_count)
|
||||||
|
self.super:onPieceLock()
|
||||||
if cleared_row_count == 0 then self:advanceBottomRow(1) end
|
if cleared_row_count == 0 then self:advanceBottomRow(1) end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -120,6 +120,7 @@ function TGMPlusGame:onPieceEnter()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function TGMPlusGame:onPieceLock(piece, cleared_row_count)
|
function TGMPlusGame:onPieceLock(piece, cleared_row_count)
|
||||||
|
self.super:onPieceLock()
|
||||||
if cleared_row_count == 0 then self:advanceBottomRow() end
|
if cleared_row_count == 0 then self:advanceBottomRow() end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user