mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 12:19:02 -06:00
Compare commits
2 Commits
56fb5aebea
...
929069c1b6
Author | SHA1 | Date | |
---|---|---|---|
929069c1b6 | |||
|
3f2b38f7b3 |
@ -237,6 +237,7 @@ function GameMode:update(inputs, ruleset)
|
|||||||
self.lock_on_soft_drop
|
self.lock_on_soft_drop
|
||||||
then
|
then
|
||||||
self.piece.locked = true
|
self.piece.locked = true
|
||||||
|
self.piece_soft_locked = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -417,9 +418,10 @@ function GameMode:dasCut()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function GameMode:areCancel(inputs, ruleset)
|
function GameMode:areCancel(inputs, ruleset)
|
||||||
if ruleset.are_cancel and self.piece_hard_dropped and
|
if ruleset.are_cancel and strTrueValues(inputs) ~= "" and
|
||||||
not self.prev_inputs.up and
|
not self.prev_inputs.up and
|
||||||
strTrueValues(inputs) ~= "" then
|
(self.piece_hard_dropped or
|
||||||
|
(self.piece_soft_locked and not self.prev_inputs.down)) then
|
||||||
self.lcd = 0
|
self.lcd = 0
|
||||||
self.are = 0
|
self.are = 0
|
||||||
end
|
end
|
||||||
@ -522,6 +524,7 @@ end
|
|||||||
|
|
||||||
function GameMode:initializeNextPiece(inputs, ruleset, piece_data, generate_next_piece)
|
function GameMode:initializeNextPiece(inputs, ruleset, piece_data, generate_next_piece)
|
||||||
self.piece_hard_dropped = false
|
self.piece_hard_dropped = false
|
||||||
|
self.piece_soft_locked = false
|
||||||
local gravity = self:getGravity()
|
local gravity = self:getGravity()
|
||||||
self.piece = ruleset:initializePiece(
|
self.piece = ruleset:initializePiece(
|
||||||
inputs, piece_data, self.grid, gravity,
|
inputs, piece_data, self.grid, gravity,
|
||||||
|
Loading…
Reference in New Issue
Block a user