mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-12-22 22:29:02 -06:00
ARE canceling
This commit is contained in:
parent
b03473d2fe
commit
e38da49180
@ -279,6 +279,14 @@ function GameMode:processDelays(inputs, ruleset, drop_speed)
|
||||
end
|
||||
elseif self.are > 0 then
|
||||
self.are = self.are - 1
|
||||
if ruleset.are_cancel and
|
||||
self.prev_inputs["up"] and
|
||||
(inputs["left"] or inputs["right"] or
|
||||
inputs["rotate_left"] or inputs["rotate_left2"] or
|
||||
inputs["rotate_right"] or inputs["rotate_right2"] or
|
||||
inputs["rotate_180"]) then
|
||||
self.are = 0
|
||||
end
|
||||
if self.are == 0 then
|
||||
self:initializeOrHold(inputs, ruleset)
|
||||
end
|
||||
|
@ -21,6 +21,7 @@ Ruleset.softdrop_lock = true
|
||||
Ruleset.harddrop_lock = false
|
||||
|
||||
Ruleset.enable_IRS_wallkicks = false
|
||||
Ruleset.are_cancel = false
|
||||
|
||||
-- Component functions.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user