From 80d87db1d2c6de9f8a9e406af5d2e2ccb0fdd144 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Thu, 14 Jan 2021 19:23:06 -0500 Subject: [PATCH] Condensed GF --- tetris/modes/marathon_gf.lua | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/tetris/modes/marathon_gf.lua b/tetris/modes/marathon_gf.lua index 3bd10e8..5de90d4 100644 --- a/tetris/modes/marathon_gf.lua +++ b/tetris/modes/marathon_gf.lua @@ -19,6 +19,7 @@ function MarathonGFGame:new() self.message_timer = 0 self.randomizer = Bag7Randomizer() self.combo = 0 + self.immobile_spin_bonus = true self.lock_drop = true self.lock_hard_drop = true @@ -129,28 +130,6 @@ function MarathonGFGame:updateScore(level, drop_bonus, cleared_lines) else self.combo = 0 end end -function MarathonGFGame:onAttemptPieceMove(piece) - if self.piece ~= nil then - if not piece:isMoveBlocked(self.grid, { x=-1, y=0 }) and - not piece:isMoveBlocked(self.grid, { x=1, y=0 }) then - piece.spin = false - end - end -end - -function MarathonGFGame:onAttemptPieceRotate(piece) - if self.piece ~= nil then - if piece:isDropBlocked(self.grid) and - piece:isMoveBlocked(self.grid, { x=-1, y=0 }) and - piece:isMoveBlocked(self.grid, { x=1, y=0 }) and - piece:isMoveBlocked(self.grid, { x=0, y=-1 }) then - piece.spin = true - else - piece.spin = false - end - end -end - function MarathonGFGame:onPieceLock(piece, cleared_row_count) self.super:onPieceLock() if self.grid:checkForBravo(cleared_row_count) then