Added a ruleset toggle for ARE.

This commit is contained in:
Ishaan Bhardwaj 2021-01-09 23:17:24 -05:00
parent c0888c484f
commit 5642ed1326
3 changed files with 5 additions and 7 deletions

View File

@ -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
=========

View File

@ -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()

View File

@ -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",