mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-11-22 16:49:01 -06:00
Zen mode negative scoring fixed
This commit is contained in:
parent
001ec53711
commit
2566c7001f
@ -94,7 +94,7 @@ end
|
|||||||
function ZenMode:onPieceLock(piece, cleared_row_count)
|
function ZenMode:onPieceLock(piece, cleared_row_count)
|
||||||
self.super:onPieceLock()
|
self.super:onPieceLock()
|
||||||
self.pieces = self.pieces + 1
|
self.pieces = self.pieces + 1
|
||||||
self.score = self.score + bigint.new(self:getLockDelay() - piece.lock_delay)
|
self.score = self.score + bigint.new(math.max(0, self:getLockDelay() - piece.lock_delay))
|
||||||
if self.grid:checkForBravo(cleared_row_count) then
|
if self.grid:checkForBravo(cleared_row_count) then
|
||||||
self.message = "ALL CLEAR!"
|
self.message = "ALL CLEAR!"
|
||||||
elseif piece.spin then
|
elseif piece.spin then
|
||||||
|
Loading…
Reference in New Issue
Block a user