Fixed some modes' getNextPiece routines

pull/16/head
Ishaan Bhardwaj 2021-02-16 17:02:13 -05:00
parent 03491ba151
commit 6a5d5a9c88
2 changed files with 2 additions and 14 deletions

View File

@ -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

View File

@ -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)