mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-22 22:59:02 -06:00
a4b7a41a15
(Only N should have the 31-tetris rule.)
27 lines
678 B
Lua
27 lines
678 B
Lua
local PhantomManiaGame = require 'tetris.modes.phantom_mania'
|
|
|
|
local PhantomManiaNGame = PhantomManiaGame:extend()
|
|
|
|
PhantomManiaNGame.name = "Phantom Mania N"
|
|
PhantomManiaNGame.hash = "PhantomManiaN"
|
|
PhantomManiaNGame.tagline = "The old mode from Nullpomino, for Ti-ARS and SRS support."
|
|
|
|
function PhantomManiaNGame:new()
|
|
PhantomManiaNGame.super:new()
|
|
|
|
self.next_queue_length = 3
|
|
self.enable_hold = true
|
|
end
|
|
|
|
function PhantomManiaNGame:qualifiesForGM()
|
|
if self.tetrises < 31 then return false end
|
|
for i = 0, 9 do
|
|
if self.section_tetrises[i] < (i == 9 and 1 or 2) then
|
|
return false
|
|
end
|
|
end
|
|
return true
|
|
end
|
|
|
|
return PhantomManiaNGame
|