mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:59:03 -06:00
Merge branch 'HEAD' of https://github.com/SashLilac/cambridge.git
This commit is contained in:
commit
a48d7c67b5
@ -47,7 +47,7 @@ DiscordRPC.presence = {
|
||||
details = "Loading game...",
|
||||
state = "",
|
||||
largeImageKey = "icon2",
|
||||
largeImageText = "Original game by Joe Zeng",
|
||||
largeImageText = "Arcade Stacker",
|
||||
smallImageKey = "",
|
||||
smallImageText = ""
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user