mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 14:49:02 -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...",
|
details = "Loading game...",
|
||||||
state = "",
|
state = "",
|
||||||
largeImageKey = "icon2",
|
largeImageKey = "icon2",
|
||||||
largeImageText = "Original game by Joe Zeng",
|
largeImageText = "Arcade Stacker",
|
||||||
smallImageKey = "",
|
smallImageKey = "",
|
||||||
smallImageText = ""
|
smallImageText = ""
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user