mirror of
https://github.com/SashLilac/cambridge.git
synced 2025-04-19 16:52:56 -05:00
Fixed a bug in the "actual cleared row count" for Big Mode.
This commit is contained in:
parent
35f4aea67d
commit
901f7f2d12
@ -19,4 +19,4 @@ There are six rulesets currently supported:
|
||||
|
||||
* ARS - the rotation system from the original Tetris the Grand Master.
|
||||
* Ti-ARS - ARS with floorkicks! From TGM3: Terror Instinct.
|
||||
* Ace-ARS - ARS with floorkicks and move reset!
|
||||
* Ace-ARS - ARS with floorkicks and move reset! From TGM ACE.
|
@ -152,6 +152,10 @@ function GameMode:update(inputs, ruleset)
|
||||
|
||||
local cleared_row_count = self.grid:getClearedRowCount()
|
||||
|
||||
if self.big_mode then
|
||||
cleared_row_count = cleared_row_count / 2
|
||||
end
|
||||
|
||||
self:onPieceLock(self.piece, cleared_row_count)
|
||||
self:updateScore(self.level, self.drop_bonus, cleared_row_count)
|
||||
|
||||
|
@ -156,7 +156,7 @@ function PhantomMania2Game:onLineClear(cleared_row_count)
|
||||
end
|
||||
self:advanceBottomRow(-cleared_row_count)
|
||||
else
|
||||
self.roll_points = self.roll_points + cleared_row_points[cleared_row_count / 2]
|
||||
self.roll_points = self.roll_points + cleared_row_points[cleared_row_count]
|
||||
if self.roll_points >= 100 then
|
||||
self.roll_points = self.roll_points - 100
|
||||
self.grade = self.grade + 1
|
||||
@ -234,7 +234,7 @@ PhantomMania2Game.garbageOpacityFunction = function(age)
|
||||
end
|
||||
|
||||
function PhantomMania2Game:drawGrid()
|
||||
if not (self.game_over or (self.clear and self.level < 1300)) then
|
||||
if not (self.game_over) then
|
||||
self.grid:drawInvisible(self.rollOpacityFunction, self.garbageOpacityFunction)
|
||||
else
|
||||
self.grid:draw()
|
||||
|
Loading…
Reference in New Issue
Block a user