experimental bravo formula for tgm1

pull/3/head
Ishaan Bhardwaj 2020-10-11 12:57:57 -04:00
parent b59edb5e8e
commit 36ceef8488
1 changed files with 2 additions and 1 deletions

View File

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