mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 03:59:02 -06:00
Added a ruleset toggle for ARE.
This commit is contained in:
parent
c0888c484f
commit
5642ed1326
@ -1,10 +1,5 @@
|
||||
![Cambridge Banner](https://cdn.discordapp.com/attachments/764432435802013709/767724895076614154/cambridge_logo_lt.png)
|
||||
|
||||
Important notice
|
||||
================
|
||||
|
||||
![Tetra Online Notice](https://pbs.twimg.com/media/Eo3CkIHW8AEoK_U?format=png&name=small)
|
||||
|
||||
Cambridge
|
||||
=========
|
||||
|
||||
|
@ -208,7 +208,9 @@ function GameMode:update(inputs, ruleset)
|
||||
if cleared_row_count > 0 then
|
||||
playSE("erase")
|
||||
self.lcd = self:getLineClearDelay()
|
||||
self.are = self:getLineARE()
|
||||
self.are = (
|
||||
ruleset.are and self:getLineARE() or 0
|
||||
)
|
||||
if self.lcd == 0 then
|
||||
self.grid:clearClearedRows()
|
||||
if self.are == 0 then
|
||||
@ -217,7 +219,7 @@ function GameMode:update(inputs, ruleset)
|
||||
end
|
||||
self:onLineClear(cleared_row_count)
|
||||
else
|
||||
if self:getARE() == 0 then
|
||||
if self:getARE() == 0 or not ruleset.are then
|
||||
self:initializeOrHold(inputs, ruleset)
|
||||
else
|
||||
self.are = self:getARE()
|
||||
|
@ -22,6 +22,7 @@ Ruleset.harddrop_lock = false
|
||||
|
||||
Ruleset.enable_IRS_wallkicks = false
|
||||
Ruleset.are_cancel = false
|
||||
Ruleset.are = true
|
||||
|
||||
Ruleset.next_sounds = {
|
||||
I = "I",
|
||||
|
Loading…
Reference in New Issue
Block a user