experimental bravo formula for tgm1

This commit is contained in:
Ishaan Bhardwaj 2020-10-11 12:57:57 -04:00
parent b59edb5e8e
commit 36ceef8488

View File

@ -145,11 +145,12 @@ function MarathonA1Game:onLineClear(cleared_row_count)
end end
function MarathonA1Game:updateScore(level, drop_bonus, cleared_lines) function MarathonA1Game:updateScore(level, drop_bonus, cleared_lines)
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
self.score = self.score + ( self.score = self.score + (
(math.ceil((level + cleared_lines) / 4) + drop_bonus) * (math.ceil((level + cleared_lines) / 4) + drop_bonus) *
cleared_lines * self.combo cleared_lines * self.combo * self.bravo
) )
self.lines = self.lines + cleared_lines self.lines = self.lines + cleared_lines
else else