添加一个禁同列消四的模式

This commit is contained in:
MrZ626
2021-10-10 03:29:16 +08:00
parent 693fb9f43f
commit 73bf974b1c
11 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
local gc=love.graphics
return{
mesDisp=function(P)
setFont(60)
mStr(P.modeData.techrash,63,250)
mText(drawableText.techrash,63,315)
PLY.draw.applyField(P)
local L=P.modeData.history
for i=1,#L do
gc.setColor(1,.5,.5,.24)
gc.rectangle('fill',30*L[i]-30,0,30,600)
end
PLY.draw.cancelField(P)
end,
dropPiece=function(P)
local C=P.lastPiece
if C.row>0 then
if C.row==4 then
if TABLE.find(P.modeData.history,C.curX)then
P:showText("STACK",0,-140,40,'flicker',.3)
P:lose()
else
P.modeData.techrash=P.modeData.techrash+1
table.insert(P.modeData.history,1,C.curX)
P.modeData.history[9]=nil
end
else
P:lose()
end
end
end,
task=function(P)
P.modeData.history={}
end,
}

View File

@@ -781,6 +781,7 @@ return{
['marathon_bfmax']={"Marathon", "ULTIMATE"},
['sprintMD']= {"Sprint", "MISDROP"},
['sprintSym']= {"Sprint", "SYMMETRY"},
['techrash_u']= {"Techrash", "ULTIMATE"},
['master_l']= {"Master", "LUNATIC"},
['master_u']= {"Master", "ULTIMATE"},

View File

@@ -732,6 +732,7 @@ return{
['marathon_bfmax']= {"Maratón", "Supremo"},
-- ['sprintMD']= {"Sprint", "MISDROP"},
-- ['sprintSym']= {"Sprint", "SYMMETRY"},
-- ['techrash_u']= {"Techrash", "ULTIMATE"},
['master_l']= {"Master", "Lunático"},
['master_u']= {"Master", "Supremo"},

View File

@@ -736,6 +736,7 @@ return{
['marathon_bfmax']={"Marathon", "ULTIME"},
-- ['sprintMD']= {"Sprint", "MISDROP"},
-- ['sprintSym']= {"Sprint", "SYMMETRY"},
-- ['techrash_u']= {"Techrash", "ULTIMATE"},
['master_l']= {"Master", "LUNATIQUE"},
['master_u']= {"Master", "ULTIME"},

View File

@@ -771,6 +771,7 @@ return{
['marathon_bfmax']= {"Maratona", "ULTIMATE"},
-- ['sprintMD']= {"Sprint", "MISDROP"},
-- ['sprintSym']= {"Sprint", "SYMMETRY"},
-- ['techrash_u']= {"Techrash", "ULTIMATE"},
['master_l']= {"Mestre", "LUNÁTICO"},
['master_u']= {"Mestre", "ULTIMATE"},

View File

@@ -276,6 +276,7 @@ return{
['marathon_bfmax']= {"马拉松", "极限"},
['sprintMD']= {"竞速", "MD"},
['sprintSym']= {"竞速", "对称"},
['techrash_u']= {"消四", "极限"},
['master_l']= {"大师", "疯狂"},
['master_u']= {"大师", "极限"},

View File

@@ -785,6 +785,7 @@ return{
['marathon_bfmax']= {"马拉松", "极限"},
['sprintMD']= {"竞速", "MD"},
['sprintSym']= {"竞速", "对称"},
['techrash_u']= {"消四", "极限"},
['master_l']= {"大师", "疯狂"},
['master_u']= {"大师", "极限"},

View File

@@ -185,6 +185,7 @@ return{
['marathon_bfmax']= {"马拉松", "极限"},
['sprintMD']= {"竞速", "手滑"},
['sprintSym']= {"竞速", "对称"},
['techrash_u']= {"消四", "极限"},
['master_l']= {"大师", "疯狂"},
['master_u']= {"大师", "极限"},

View File

@@ -783,6 +783,7 @@ return{
['marathon_bfmax']={"马拉松赛跑", "终极"} ,
['sprintMD']= {"竞速", "误滴"},
['sprintSym']= {"竞速", "对称性"},
['techrash_u']= {"消四", "极限"},
['master_l']= {"主人", "疯子"},
['master_u']= {"主人", "终极"} ,

View File

@@ -125,6 +125,7 @@ return{
{name='marathon_bfmax'},
{name='sprintMD'},
{name='sprintSym'},
{name='techrash_u'},
--Old
{name='master_l'},

View File

@@ -0,0 +1,20 @@
return{
color=COLOR.lYellow,
env={
drop=60,lock=60,
freshLimit=15,
ospin=false,
eventSet='techrash_u',
bg='matrix',bgm='vapor',
},
getRank=function(P)
local T=P.stat.clear[7][4]
return
T>=20 and 5 or
T>=16 and 4 or
T>=12 and 3 or
T==8 and 2 or
T>=4 and 1 or
T>=2 and 0
end,
}