From 6a5d5a9c8814d7bd6c731c0af920ae2daf86f72a Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Tue, 16 Feb 2021 17:02:13 -0500 Subject: [PATCH] Fixed some modes' getNextPiece routines --- tetris/modes/strategy.lua | 8 -------- tetris/modes/survival_2020.lua | 8 ++------ 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/tetris/modes/strategy.lua b/tetris/modes/strategy.lua index c5bc35a..2eb83bd 100644 --- a/tetris/modes/strategy.lua +++ b/tetris/modes/strategy.lua @@ -60,14 +60,6 @@ function StrategyGame:getGravity() return 20 end -function StrategyGame:getNextPiece(ruleset) - return { - skin = "2tie", - shape = self.randomizer:nextPiece(), - orientation = ruleset:getDefaultOrientation(), - } -end - function StrategyGame:advanceOneFrame() if self.clear then self.roll_frames = self.roll_frames + 1 diff --git a/tetris/modes/survival_2020.lua b/tetris/modes/survival_2020.lua index 7d385f7..76e7fa3 100644 --- a/tetris/modes/survival_2020.lua +++ b/tetris/modes/survival_2020.lua @@ -94,12 +94,8 @@ function Survival2020Game:getGravity() return 20 end -function Survival2020Game:getNextPiece(ruleset) - return { - skin = self.level >= 1000 and "bone" or "2tie", - shape = self.randomizer:nextPiece(), - orientation = ruleset:getDefaultOrientation(), - } +function Survival2020Game:getSkin() + return self.level >= 1000 and "bone" or "2tie" end function Survival2020Game:hitTorikan(old_level, new_level)