This commit is contained in:
Oshisaure 2020-10-13 20:26:33 +01:00
commit a48d7c67b5
3 changed files with 5 additions and 4 deletions

View File

@ -47,7 +47,7 @@ DiscordRPC.presence = {
details = "Loading game...", details = "Loading game...",
state = "", state = "",
largeImageKey = "icon2", largeImageKey = "icon2",
largeImageText = "Original game by Joe Zeng", largeImageText = "Arcade Stacker",
smallImageKey = "", smallImageKey = "",
smallImageText = "" smallImageText = ""
} }

View File

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