Updated Marathon A1's combo calculation algorithm.

Apparently the 1/6/15/28 multiplier comes from updating combo before calculating the multiplier, not something that gets independently multiplied.
pull/1/head
Joe Zeng 2019-05-28 21:26:38 -04:00 committed by GitHub
parent 99f7ff72fd
commit b316d9617b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -142,12 +142,12 @@ end
function MarathonA1Game:updateScore(level, drop_bonus, cleared_lines)
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 * (cleared_lines * 2 - 1) * self.combo
cleared_lines * self.combo
)
self.lines = self.lines + cleared_lines
self.combo = self.combo + (cleared_lines - 1) * 2
self.lines = self.lines + cleared_lines
else
self.drop_bonus = 0
self.combo = 1