From 2566c7001f716eba4090a7bdce3a27975a05cbe1 Mon Sep 17 00:00:00 2001 From: Ishaan Bhardwaj Date: Sat, 30 Jan 2021 23:29:07 -0500 Subject: [PATCH] Zen mode negative scoring fixed --- tetris/modes/zen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tetris/modes/zen.lua b/tetris/modes/zen.lua index 45f69a9..1b7c794 100644 --- a/tetris/modes/zen.lua +++ b/tetris/modes/zen.lua @@ -94,7 +94,7 @@ end function ZenMode:onPieceLock(piece, cleared_row_count) self.super:onPieceLock() 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 self.message = "ALL CLEAR!" elseif piece.spin then