mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:59:03 -06:00
Fixed a bug where you could not get M-roll in A2
This commit is contained in:
parent
664bca2282
commit
a33ca1af24
@ -108,14 +108,10 @@ function GameMode:initialize(ruleset, secret_inputs)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function GameMode:update(inputs, ruleset)
|
function GameMode:update(inputs, ruleset)
|
||||||
if self.game_over then
|
if self.game_over or self.completed then
|
||||||
self.game_over_frames = self.game_over_frames + 1
|
self:onGameOver()
|
||||||
if self.game_over_frames >= 60 then
|
|
||||||
self.completed = true
|
|
||||||
end
|
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if self.completed then return end
|
|
||||||
|
|
||||||
if config.gamesettings.diagonal_input == 2 then
|
if config.gamesettings.diagonal_input == 2 then
|
||||||
if inputs["left"] or inputs["right"] then
|
if inputs["left"] or inputs["right"] then
|
||||||
|
@ -130,6 +130,9 @@ end
|
|||||||
function MarathonA2Game:updateScore(level, drop_bonus, cleared_lines)
|
function MarathonA2Game:updateScore(level, drop_bonus, cleared_lines)
|
||||||
if not self.clear then
|
if not self.clear then
|
||||||
self:updateGrade(cleared_lines)
|
self:updateGrade(cleared_lines)
|
||||||
|
if cleared_lines >= 4 then
|
||||||
|
self.tetris_requirements[math.floor(level / 100)] = self.tetris_requirements[math.floor(level / 100)] + 1
|
||||||
|
end
|
||||||
if self.grid:checkForBravo(cleared_lines) then self.bravo = 4 else self.bravo = 1 end
|
if self.grid:checkForBravo(cleared_lines) then self.bravo = 4 else self.bravo = 1 end
|
||||||
if cleared_lines > 0 then
|
if cleared_lines > 0 then
|
||||||
self.combo = self.combo + (cleared_lines - 1) * 2
|
self.combo = self.combo + (cleared_lines - 1) * 2
|
||||||
|
Loading…
Reference in New Issue
Block a user