Some big mode fixes

This commit is contained in:
Ishaan Bhardwaj 2020-10-13 14:16:23 -04:00
parent 3f7fc4b622
commit 4eb3901610

View File

@ -136,15 +136,16 @@ function MarathonA2Game:onLineClear(cleared_row_count)
end
function MarathonA2Game:updateScore(level, drop_bonus, cleared_lines)
if self.grid:checkForBravo(cleared_lines) then self.bravo = 4 else self.bravo = 1 end
cleared_lines = cleared_lines / 2
self:updateGrade(cleared_lines)
if cleared_lines > 0 then
self.score = self.score + (
(math.ceil((level + cleared_lines) / 4) + drop_bonus) *
cleared_lines * (cleared_lines * 2 - 1) * (self.combo * 2 - 1)
(math.ceil((level + cleared_lines) / 4) + 2 * drop_bonus) *
cleared_lines * self.combo * self.bravo
)
self.lines = self.lines + cleared_lines
self.combo = self.combo + cleared_lines - 1
self.combo = self.combo + 2 * (cleared_lines - 1)
else
self.drop_bonus = 0
self.combo = 1