mirror of
https://github.com/SashLilac/cambridge-modpack.git
synced 2024-11-22 17:29:03 -06:00
Final TL balancing
This commit is contained in:
parent
2ee7d80626
commit
a0887a46c0
@ -13,6 +13,13 @@ function ProGame:new()
|
|||||||
self.super:new()
|
self.super:new()
|
||||||
self.next_queue_length = 6
|
self.next_queue_length = 6
|
||||||
self.randomizer = TetraRandomizer()
|
self.randomizer = TetraRandomizer()
|
||||||
|
self.active_time = 0
|
||||||
|
end
|
||||||
|
|
||||||
|
function ProGame:initialize(ruleset)
|
||||||
|
self.super.initialize(self, ruleset)
|
||||||
|
ruleset.onPieceMove = function() end
|
||||||
|
ruleset.onPieceRotate = function() end
|
||||||
end
|
end
|
||||||
|
|
||||||
function ProGame:getARE() return 6 end
|
function ProGame:getARE() return 6 end
|
||||||
@ -58,12 +65,20 @@ function ProGame:advanceOneFrame(inputs, ruleset)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ruleset.onPieceMove = function() end
|
|
||||||
ruleset.onPieceRotate = function() end
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function ProGame:onPieceEnter()
|
||||||
|
self.active_time = 0
|
||||||
|
end
|
||||||
|
|
||||||
|
function ProGame:whilePieceActive()
|
||||||
|
if self.piece:isDropBlocked(self.grid) then
|
||||||
|
self.active_time = self.active_time + 1
|
||||||
|
self.piece.locked = self.active_time >= self:getLockDelay() * 4
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function ProGame:onLineClear(cleared_row_count)
|
function ProGame:onLineClear(cleared_row_count)
|
||||||
if not self.clear then
|
if not self.clear then
|
||||||
local new_lines = self.lines + cleared_row_count
|
local new_lines = self.lines + cleared_row_count
|
||||||
|
Loading…
Reference in New Issue
Block a user