整 理 代 码

(应该没有改到字符串里面的东西吧…)起码不直接影响运行
This commit is contained in:
MrZ_26
2022-10-01 11:32:11 +08:00
parent 6e00ff96ec
commit 06f4bb4e1a
236 changed files with 2087 additions and 2114 deletions

View File

@@ -7,9 +7,9 @@ return{
eventSet='attacker_h',
bg='rainbow2',bgm='shining terminal',
},
score=function(P)return{P.modeData.wave,P.stat.time}end,
scoreDisp=function(D)return D[1].." Waves "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.time} end,
scoreDisp=function(D) return D[1].." Waves "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -6,9 +6,9 @@ return{
eventSet='attacker_u',
bg='rainbow2',bgm='shining terminal',
},
score=function(P)return{P.modeData.wave,P.stat.time}end,
scoreDisp=function(D)return D[1].." Waves "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.time} end,
scoreDisp=function(D) return D[1].." Waves "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -13,9 +13,9 @@ return{
end,
bg='tunnel',bgm='echo',
},
score=function(P)return{math.min(math.floor(P.stat.atk),100),P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(math.floor(P.stat.atk),100),P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.atk
if L>=100 then

View File

@@ -13,9 +13,9 @@ return{
end,
bg='blockhole',bgm='echo',
},
score=function(P)return{math.min(math.floor(P.stat.atk),100),P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(math.floor(P.stat.atk),100),P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.atk
if L>=100 then

View File

@@ -12,9 +12,9 @@ return{
end,
bg='tunnel',bgm='echo',
},
score=function(P)return{math.min(math.floor(P.stat.atk),100),P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(math.floor(P.stat.atk),100),P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.atk
if L>=100 then

View File

@@ -13,9 +13,9 @@ return{
end,
bg='blockhole',bgm='echo',
},
score=function(P)return{math.min(math.floor(P.stat.atk),100),P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(math.floor(P.stat.atk),100),P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.atk
if L>=100 then

View File

@@ -7,9 +7,9 @@ return{
eventSet='big_h',
bg='cubes',bgm='push',
},
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L>=200 then

View File

@@ -7,9 +7,9 @@ return{
eventSet='big_n',
bg='bg2',bgm='push',
},
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L>=200 then

View File

@@ -7,9 +7,9 @@ return{
eventSet='checkLine_200',
bg='glow',bgm='sugar fairy',
},
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L>=200 then

View File

@@ -10,9 +10,9 @@ return{
eventSet='checkLine_200',
bg='rgb',bgm='sugar fairy',
},
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L>=200 then

View File

@@ -11,9 +11,9 @@ return{
eventSet='checkLine_200',
bg='rgb',bgm='sugar fairy',
},
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L>=200 then

View File

@@ -7,9 +7,9 @@ return{
eventSet='checkLine_200',
bg='glow',bgm='sugar fairy',
},
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L>=200 then

View File

@@ -10,9 +10,9 @@ return{
eventSet='checkLine_100',
bg='rgb',bgm='far',
},
score=function(P)return{math.min(P.stat.row,100),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,100),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -59,9 +59,9 @@ return{
MES.new('warn',text.switchSpawnSFX)
end
end,
score=function(P)return{min(P.stat.row,40),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{min(P.stat.row,40),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -6,9 +6,9 @@ return{
eventSet='c4wBase',
bg='rgb',bgm='oxygen',
},
score=function(P)return{math.min(P.modeData.maxCombo,100),P.stat.time}end,
scoreDisp=function(D)return D[1].." Combo "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.modeData.maxCombo,100),P.stat.time} end,
scoreDisp=function(D) return D[1].." Combo "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.modeData.maxCombo
if L==100 then

View File

@@ -6,9 +6,9 @@ return{
eventSet='c4wBase',
bg='rgb',bgm='oxygen',
},
score=function(P)return{math.min(P.modeData.maxCombo,100),P.stat.time}end,
scoreDisp=function(D)return D[1].." Combo "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.modeData.maxCombo,100),P.stat.time} end,
scoreDisp=function(D) return D[1].." Combo "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L==100 then

View File

@@ -7,9 +7,9 @@ return{
bg='rgb',bgm='1980s',
},
slowMark=true,
score=function(P)return{P.stat.score,P.stat.row}end,
scoreDisp=function(D)return D[1].." "..D[2].." Lines"end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.score,P.stat.row} end,
scoreDisp=function(D) return D[1].." "..D[2].." Lines" end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -7,9 +7,9 @@ return{
bg='rgb',bgm='1980s',
},
slowMark=true,
score=function(P)return{P.stat.score,P.stat.row}end,
scoreDisp=function(D)return D[1].." "..D[2].." Lines"end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.score,P.stat.row} end,
scoreDisp=function(D) return D[1].." "..D[2].." Lines" end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -7,9 +7,9 @@ return{
bg='rgb',bgm='1980s',
},
slowMark=true,
score=function(P)return{P.stat.score,P.stat.row}end,
scoreDisp=function(D)return D[1].." "..D[2].." Lines"end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.score,P.stat.row} end,
scoreDisp=function(D) return D[1].." "..D[2].." Lines" end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -7,9 +7,9 @@ return{
bg='rgb',bgm='1980s',
},
slowMark=true,
score=function(P)return{P.stat.score,P.stat.row}end,
scoreDisp=function(D)return D[1].." "..D[2].." Lines"end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.score,P.stat.row} end,
scoreDisp=function(D) return D[1].." "..D[2].." Lines" end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -12,9 +12,9 @@ return{
PLY.newPlayer(1)
local AItype=GAME.modeEnv.opponent:sub(1,2)
local AIlevel=tonumber(GAME.modeEnv.opponent:sub(-1))
if AItype=='9S'then
if AItype=='9S' then
PLY.newAIPlayer(2,BOT.template{type='9S',speedLV=2*AIlevel,hold=true})
elseif AItype=='CC'then
elseif AItype=='CC' then
PLY.newAIPlayer(2,BOT.template{type='CC',speedLV=2*AIlevel-1,next=math.floor(AIlevel*.5+1),hold=true,node=20000+5000*AIlevel})
end

View File

@@ -3,14 +3,14 @@ local ply_applyField=PLY.draw.applyField
return{
env={
fkey1=function(P)P.modeData.showMark=1-P.modeData.showMark end,
fkey1=function(P) P.modeData.showMark=1-P.modeData.showMark end,
hook_drop=function(P)
local D=P.modeData
local F=FIELD[D.finished+1]
for y=1,#F do
local L=P.field[y]
for x=1,10 do
local a,b=F[y][x],L and L[x]or 0
local a,b=F[y][x],L and L[x] or 0
if a~=0 then
if a==-1 then if b>0 then return end
elseif a<12 then if a~=b then return end
@@ -20,7 +20,7 @@ return{
end
end
D.finished=D.finished+1
if FIELD[D.finished+1]then
if FIELD[D.finished+1] then
P.waiting=26
for _=#P.field,1,-1 do
P.field[_],P.visTime[_]=nil
@@ -54,9 +54,9 @@ return{
local AItype=GAME.modeEnv.opponent:sub(1,2)
local AIlevel=tonumber(GAME.modeEnv.opponent:sub(-1))
PLY.newPlayer(1)
if AItype=='9S'then
if AItype=='9S' then
PLY.newAIPlayer(2,BOT.template{type='9S',speedLV=2*AIlevel,hold=true})
elseif AItype=='CC'then
elseif AItype=='CC' then
PLY.newAIPlayer(2,BOT.template{type='CC',speedLV=2*AIlevel-1,next=math.floor(AIlevel*.5+1),hold=true,node=20000+5000*AIlevel})
end
end,

View File

@@ -6,9 +6,9 @@ return{
eventSet='defender_l',
bg='rainbow2',bgm='storm',
},
score=function(P)return{P.modeData.wave,P.stat.time}end,
scoreDisp=function(D)return D[1].." Waves "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.time} end,
scoreDisp=function(D) return D[1].." Waves "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -6,9 +6,9 @@ return{
eventSet='defender_n',
bg='rainbow2',bgm='storm',
},
score=function(P)return{P.modeData.wave,P.stat.time}end,
scoreDisp=function(D)return D[1].." Waves "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.time} end,
scoreDisp=function(D) return D[1].." Waves "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -4,9 +4,9 @@ return{
eventSet='dig_100l',
bg='bg2',bgm='way',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.dig<100 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='dig_10l',
bg='bg1',bgm='way',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.dig<10 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='dig_400l',
bg='bg2',bgm='way',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.dig<400 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='dig_40l',
bg='bg1',bgm='way',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.dig<40 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='dig_100l',
bg='bg2',bgm='way',
},
score=function(P)return{P.stat.piece,P.stat.time}end,
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.piece,P.stat.time} end,
scoreDisp=function(D) return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.dig<100 then return end
local P=P.stat.piece

View File

@@ -4,9 +4,9 @@ return{
eventSet='dig_10l',
bg='bg1',bgm='way',
},
score=function(P)return{P.stat.piece,P.stat.time}end,
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.piece,P.stat.time} end,
scoreDisp=function(D) return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.dig<10 then return end
local P=P.stat.piece

View File

@@ -4,9 +4,9 @@ return{
eventSet='dig_400l',
bg='bg2',bgm='way',
},
score=function(P)return{P.stat.piece,P.stat.time}end,
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.piece,P.stat.time} end,
scoreDisp=function(D) return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.dig<400 then return end
local P=P.stat.piece

View File

@@ -4,9 +4,9 @@ return{
eventSet='dig_40l',
bg='bg1',bgm='way',
},
score=function(P)return{P.stat.piece,P.stat.time}end,
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.piece,P.stat.time} end,
scoreDisp=function(D) return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.dig<40 then return end
local P=P.stat.piece

View File

@@ -6,9 +6,9 @@ return{
eventSet='dig_h',
bg='bg2',bgm='shift',
},
score=function(P)return{P.modeData.wave,P.stat.row}end,
scoreDisp=function(D)return D[1].." Waves "..D[2].." Lines"end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.row} end,
scoreDisp=function(D) return D[1].." Waves "..D[2].." Lines" end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -30,9 +30,9 @@ return{
P.stat.dig_quad = 0
end,
},
score=function(P)return{P.stat.dig_quad,P.stat.piece}end,
scoreDisp=function(D)return D[1].." Techrash "..D[2].." Pieces"end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.dig_quad,P.stat.piece} end,
scoreDisp=function(D) return D[1].." Techrash "..D[2].." Pieces" end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local dig = P.stat.dig_quad
local piece = P.stat.piece

View File

@@ -5,9 +5,9 @@ return{
eventSet='dig_u',
bg='bg2',bgm='shift',
},
score=function(P)return{P.modeData.wave,P.stat.row}end,
scoreDisp=function(D)return D[1].." Waves "..D[2].." Lines"end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.row} end,
scoreDisp=function(D) return D[1].." Waves "..D[2].." Lines" end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -3,10 +3,10 @@ return{
env={
drop=20,lock=60,
sequence=function(P)
for _=1,3 do P:getNext(7)end
for _=1,3 do P:getNext(7) end
while true do
coroutine.yield()
if not P.nextQueue[1]then
if not P.nextQueue[1] then
local height=TABLE.new(0,10)
local max=#P.field
if max>0 then
@@ -44,7 +44,7 @@ return{
if tempDeltaHei<-2 and deltaHei>2 then
break
elseif x==11 then
for _=1,3 do ins(wei,7)end
for _=1,3 do ins(wei,7) end
else
tempDeltaHei=deltaHei
end
@@ -62,10 +62,10 @@ return{
end
end
if flatCount<3 then
for _=1,3 do ins(wei,6)end
for _=1,3 do ins(wei,6) end
end
if stairCount<3 then
for _=1,4 do ins(wei,5)end
for _=1,4 do ins(wei,5) end
end
end
P:getNext(wei[P.seqRND:random(#wei)])
@@ -78,9 +78,9 @@ return{
eventSet='checkLine_100',
bg='blockfall',bgm='reason',
},
score=function(P)return{math.min(P.stat.row,100),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,100),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L>=100 then

View File

@@ -9,9 +9,9 @@ return{
eventSet='checkLine_100',
bg='blockfall',bgm='reason',
},
score=function(P)return{math.min(P.stat.row,100),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,100),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L>=100 then

View File

@@ -15,12 +15,12 @@ local function check_rise(P)
if L==0 then
P:_showText(text.awesome,0,-120,80,'beat',.6)
SFX.play('pc')
if BG.cur=='wing'then BG.send(26)end
if BG.cur=='wing' then BG.send(26) end
for _=1,8 do
P:garbageRise(13,1,generateLine(P.holeRND:random(10)))
end
else
if BG.cur=='wing'then BG.send(#P.clearedRow)end
if BG.cur=='wing' then BG.send(#P.clearedRow) end
end
end
end

View File

@@ -7,9 +7,9 @@ return{
bg='cubes',bgm='push',
},
slowMark=true,
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L>=200 then

View File

@@ -7,9 +7,9 @@ return{
bg='bg2',bgm='push',
},
slowMark=true,
score=function(P)return{P.stat.score,P.stat.row,P.stat.time}end,
scoreDisp=function(D)return D[1].."P "..D[2].."L "..STRING.time(D[3])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.score,P.stat.row,P.stat.time} end,
scoreDisp=function(D) return D[1].."P "..D[2].."L "..STRING.time(D[3]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
return P.stat.row>=26 and 0
end,

View File

@@ -7,9 +7,9 @@ return{
bg='bg2',bgm='push',
},
slowMark=true,
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
if L>=200 then

View File

@@ -6,9 +6,9 @@ return{
bg='blockspace',bgm='hope',
},
slowMark=true,
score=function(P)return{P.modeData.rankPoint,P.stat.score}end,
scoreDisp=function(D)return sectionName[math.floor(D[1]/10)+1].." "..D[2]end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]>b[2]end,
score=function(P) return{P.modeData.rankPoint,P.stat.score} end,
scoreDisp=function(D) return sectionName[math.floor(D[1]/10)+1].." "..D[2] end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]>b[2] end,
getRank=function(P)
P=P.modeData.rankPoint
return

View File

@@ -5,9 +5,9 @@ return{
bg='lightning',bgm='rectification',
},
slowMark=true,
score=function(P)return{P.modeData.pt,P.stat.time}end,
scoreDisp=function(D)return D[1].."P "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.pt,P.stat.time} end,
scoreDisp=function(D) return D[1].."P "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local S=P.modeData.pt
return

View File

@@ -15,8 +15,8 @@ return{
},
slowMark=true,
score=function(P) return {P.modeData.gradePts,P.stat.time} end,
scoreDisp=function(D) return(gradeList[D[1]]or D[1]).." "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or(a[1]==b[1]and a[2]<b[2])end,
scoreDisp=function(D) return(gradeList[D[1]] or D[1]).." "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or (a[1]==b[1] and a[2]<b[2]) end,
getRank=function(P)
local G=P.modeData.gradePts
return

View File

@@ -6,10 +6,10 @@ return{
bg='bg2',bgm='secret7th',
},
slowMark=true,
score=function(P)return{P.modeData.pt,P.stat.time}end,
scoreDisp=function(D)return D[1].."P "..STRING.time(D[2])end,
score=function(P) return{P.modeData.pt,P.stat.time} end,
scoreDisp=function(D) return D[1].."P "..STRING.time(D[2]) end,
comp=function(a,b)
return a[1]>b[1]or(a[1]==b[1]and a[2]<b[2])
return a[1]>b[1] or (a[1]==b[1] and a[2]<b[2])
end,
getRank=function(P)
local S=P.modeData.pt

View File

@@ -6,10 +6,10 @@ return{
bg='glow',bgm='sugar fairy',
},
slowMark=true,
score=function(P)return{P.modeData.pt,P.stat.time}end,
scoreDisp=function(D)return D[1].."P "..STRING.time(D[2])end,
score=function(P) return{P.modeData.pt,P.stat.time} end,
scoreDisp=function(D) return D[1].."P "..STRING.time(D[2]) end,
comp=function(a,b)
return a[1]>b[1]or(a[1]==b[1]and a[2]<b[2])
return a[1]>b[1] or (a[1]==b[1] and a[2]<b[2])
end,
getRank=function(P)
local S=P.modeData.pt

View File

@@ -5,9 +5,9 @@ return{
bg='bg2',bgm='super7th',
},
slowMark=true,
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -6,10 +6,10 @@ return{
bg='bg1',bgm='secret8th',
},
slowMark=true,
score=function(P)return{P.modeData.pt,P.stat.time}end,
scoreDisp=function(D)return D[1].."P "..STRING.time(D[2])end,
score=function(P) return{P.modeData.pt,P.stat.time} end,
scoreDisp=function(D) return D[1].."P "..STRING.time(D[2]) end,
comp=function(a,b)
return a[1]>b[1]or(a[1]==b[1]and a[2]<b[2])
return a[1]>b[1] or (a[1]==b[1] and a[2]<b[2])
end,
getRank=function(P)
local S=P.modeData.pt

View File

@@ -4,13 +4,13 @@ return{
bg='blockspace',bgm='race remix',
},
slowMark=true,
score=function(P)return{P.result=='win'and 260 or P.modeData.pt,P.stat.time}end,
scoreDisp=function(D)return D[1].."P "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.result=='win' and 260 or P.modeData.pt,P.stat.time} end,
scoreDisp=function(D) return D[1].."P "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local p=P.modeData.pt
return
P.result=='win'and 5 or
P.result=='win' and 5 or
p>=226 and 4 or
p>=162 and 3 or
p>=62 and 2 or

View File

@@ -1,10 +1,10 @@
local yield=coroutine.yield
local function marginTask(P)
local S=P.stat
while true do yield()if S.frame>90*60 then P.strength=1;P:setFrameColor(1)break end end
while true do yield()if S.frame>135*60 then P.strength=2;P:setFrameColor(2)break end end
while true do yield()if S.frame>180*60 then P.strength=3;P:setFrameColor(3)break end end
while true do yield()if S.frame>260*60 then P.strength=4;P:setFrameColor(4)break end end
while true do yield() if S.frame>90*60 then P.strength=1;P:setFrameColor(1)break end end
while true do yield() if S.frame>135*60 then P.strength=2;P:setFrameColor(2)break end end
while true do yield() if S.frame>180*60 then P.strength=3;P:setFrameColor(3)break end end
while true do yield() if S.frame>260*60 then P.strength=4;P:setFrameColor(4)break end end
end
return{
env={

View File

@@ -12,9 +12,9 @@ return{
eventSet='checkLine_100',
bg='rgb',bgm='truth',
},
score=function(P)return{P.stat.pc,P.stat.time}end,
scoreDisp=function(D)return D[1].." PCs "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.pc,P.stat.time} end,
scoreDisp=function(D) return D[1].." PCs "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.pc
return

View File

@@ -7,9 +7,9 @@ return{
eventSet='pc_inf',
bg='rgb',bgm='moonbeam',
},
score=function(P)return{P.stat.pc,P.stat.time}end,
scoreDisp=function(D)return D[1].." PCs "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.pc,P.stat.time} end,
scoreDisp=function(D) return D[1].." PCs "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.pc
return

View File

@@ -12,9 +12,9 @@ return{
eventSet='checkLine_100',
bg='rgb',bgm='moonbeam',
},
score=function(P)return{P.stat.pc,P.stat.time}end,
scoreDisp=function(D)return D[1].." PCs "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.pc,P.stat.time} end,
scoreDisp=function(D) return D[1].." PCs "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.pc
return

View File

@@ -10,9 +10,9 @@ return{
eventSet='checkLine_100',
bg='rgb',bgm='truth',
},
score=function(P)return{P.stat.pc,P.stat.time}end,
scoreDisp=function(D)return D[1].." PCs "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.pc,P.stat.time} end,
scoreDisp=function(D) return D[1].." PCs "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.pc
return

View File

@@ -8,9 +8,9 @@ return{
eventSet='pctrain_l',
bg='rgb',bgm='memory',
},
score=function(P)return{P.stat.pc,P.stat.time}end,
scoreDisp=function(D)return D[1].." PCs "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.pc,P.stat.time} end,
scoreDisp=function(D) return D[1].." PCs "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.pc
return

View File

@@ -7,9 +7,9 @@ return{
eventSet='pctrain_n',
bg='rgb',bgm='memory',
},
score=function(P)return{P.stat.pc,P.stat.time}end,
scoreDisp=function(D)return D[1].." PCs "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.pc,P.stat.time} end,
scoreDisp=function(D) return D[1].." PCs "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.pc
return

View File

@@ -12,11 +12,11 @@ return{
PLY.newPlayer(1)
PLY.newAIPlayer(2,BOT.template{type='9S',speedLV=7,hold=false})
end,
score=function(P)return{P.stat.piece,P.stat.time}end,
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.piece,P.stat.time} end,
scoreDisp=function(D) return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.result=='win'then
if P.result=='win' then
local T=P.stat.piece
return
T<=7*10 and 5 or

View File

@@ -12,11 +12,11 @@ return{
PLY.newPlayer(1)
PLY.newAIPlayer(2,BOT.template{type='CC',speedLV=7,next=2,hold=false,node=5000})
end,
score=function(P)return{P.stat.piece,P.stat.time}end,
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.piece,P.stat.time} end,
scoreDisp=function(D) return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.result=='win'then
if P.result=='win' then
local T=P.stat.piece
return
T<=7*10 and 5 or

View File

@@ -12,11 +12,11 @@ return{
PLY.newPlayer(1)
PLY.newAIPlayer(2,BOT.template{type='CC',speedLV=7,next=3,hold=true,node=20000})
end,
score=function(P)return{P.stat.piece,P.stat.time}end,
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.piece,P.stat.time} end,
scoreDisp=function(D) return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.result=='win'then
if P.result=='win' then
local T=P.stat.piece
return
T<=7*10 and 5 or

View File

@@ -12,11 +12,11 @@ return{
PLY.newPlayer(1)
PLY.newAIPlayer(2,BOT.template{type='9S',speedLV=7,hold=true})
end,
score=function(P)return{P.stat.piece,P.stat.time}end,
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.piece,P.stat.time} end,
scoreDisp=function(D) return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.result=='win'then
if P.result=='win' then
local T=P.stat.piece
return
T<=7*10 and 5 or

View File

@@ -12,11 +12,11 @@ return{
PLY.newPlayer(1)
PLY.newAIPlayer(2,BOT.template{type='CC',speedLV=7,next=4,hold=true,node=40000})
end,
score=function(P)return{P.stat.piece,P.stat.time}end,
scoreDisp=function(D)return D[1].." Pieces "..STRING.time(D[2])end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.piece,P.stat.time} end,
scoreDisp=function(D) return D[1].." Pieces "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.result=='win'then
if P.result=='win' then
local T=P.stat.piece
return
T<=7*10 and 5 or

View File

@@ -28,9 +28,9 @@ return{
eventSet='secret_grade',
bg='bg2',bgm='race',
},
score=function(P)return{P.modeData.rankPts,P.stat.piece}end,
scoreDisp=function(D)return getRank(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.rankPts,P.stat.piece} end,
scoreDisp=function(D) return getRank(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local G=P.modeData.rankPts
return

View File

@@ -9,11 +9,11 @@ return{
PLY.newPlayer(1)
PLY.newAIPlayer(2,BOT.template{type='9S',speedLV=3,hold=true})
end,
score=function(P)return{P.stat.time}end,
scoreDisp=function(D)return STRING.time(D[1])end,
comp=function(a,b)return a[1]<b[1]end,
score=function(P) return{P.stat.time} end,
scoreDisp=function(D) return STRING.time(D[1]) end,
comp=function(a,b) return a[1]<b[1] end,
getRank=function(P)
if P.result=='win'then
if P.result=='win' then
local T=P.stat.time
return
T<=50 and 5 or

View File

@@ -9,11 +9,11 @@ return{
PLY.newPlayer(1)
PLY.newAIPlayer(2,BOT.template{type='9S',speedLV=6,hold=true})
end,
score=function(P)return{P.stat.time}end,
scoreDisp=function(D)return STRING.time(D[1])end,
comp=function(a,b)return a[1]<b[1]end,
score=function(P) return{P.stat.time} end,
scoreDisp=function(D) return STRING.time(D[1]) end,
comp=function(a,b) return a[1]<b[1] end,
getRank=function(P)
if P.result=='win'then
if P.result=='win' then
local T=P.stat.time
return
T<=50 and 5 or

View File

@@ -9,11 +9,11 @@ return{
PLY.newPlayer(1)
PLY.newAIPlayer(2,BOT.template{type='CC',speedLV=6,next=2,hold=true,node=30000})
end,
score=function(P)return{P.stat.time}end,
scoreDisp=function(D)return STRING.time(D[1])end,
comp=function(a,b)return a[1]<b[1]end,
score=function(P) return{P.stat.time} end,
scoreDisp=function(D) return STRING.time(D[1]) end,
comp=function(a,b) return a[1]<b[1] end,
getRank=function(P)
if P.result=='win'then
if P.result=='win' then
local L=P.life
return
L>=2 and 5 or

View File

@@ -9,11 +9,11 @@ return{
PLY.newPlayer(1)
PLY.newAIPlayer(2,BOT.template{type='9S',speedLV=5,hold=true})
end,
score=function(P)return{P.stat.time}end,
scoreDisp=function(D)return STRING.time(D[1])end,
comp=function(a,b)return a[1]<b[1]end,
score=function(P) return{P.stat.time} end,
scoreDisp=function(D) return STRING.time(D[1]) end,
comp=function(a,b) return a[1]<b[1] end,
getRank=function(P)
if P.result=='win'then
if P.result=='win' then
local T=P.stat.time
return
T<=50 and 5 or

View File

@@ -9,11 +9,11 @@ return{
PLY.newPlayer(1)
PLY.newAIPlayer(2,BOT.template{type='CC',speedLV=7,next=3,hold=true,node=50000})
end,
score=function(P)return{P.stat.time}end,
scoreDisp=function(D)return STRING.time(D[1])end,
comp=function(a,b)return a[1]<b[1]end,
score=function(P) return{P.stat.time} end,
scoreDisp=function(D) return STRING.time(D[1]) end,
comp=function(a,b) return a[1]<b[1] end,
getRank=function(P)
if P.result=='win'then
if P.result=='win' then
local L=P.life
return
L>=2 and 5 or

View File

@@ -5,9 +5,9 @@ return{
eventSet='checkLine_40',
bg='bg2',bgm='race',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or(a[1]==b[1]and a[2]<b[2])end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or (a[1]==b[1] and a[2]<b[2]) end,
getRank=function(P)
if P.stat.row<40 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='checkAttack_100',
bg='matrix',bgm='new era',
},
score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.atk<=100 and math.floor(P.stat.atk) or 100,P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.atk<40 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='sprintEff_40',
bg='bg2',bgm='race',
},
score=function(P)return{P.stat.atk/P.stat.row,P.stat.time}end,
scoreDisp=function(D)return string.format("%.3f",D[1]).." Efficiency "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.atk/P.stat.row,P.stat.time} end,
scoreDisp=function(D) return string.format("%.3f",D[1]).." Efficiency "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.row<40 then return end
local E=P.stat.atk/P.stat.row

View File

@@ -6,9 +6,9 @@ return{
eventSet='checkLine_40',
bg='aura',bgm='magicblock',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or(a[1]==b[1]and a[2]<b[2])end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or (a[1]==b[1] and a[2]<b[2]) end,
getRank=function(P)
if P.stat.row<40 then return end
local T=P.stat.time

View File

@@ -5,9 +5,9 @@ return{
eventSet='checkLine_40',
bg='aura',bgm='beat5th',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or(a[1]==b[1]and a[2]<b[2])end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or (a[1]==b[1] and a[2]<b[2]) end,
getRank=function(P)
if P.stat.row<40 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='checkLine_1000',
bg='rainbow',bgm='push',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.row<1000 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='checkLine_100',
bg='bg2',bgm='race',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.row<100 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='checkLine_10',
bg='bg2',bgm='race',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.row<10 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='checkLine_20',
bg='bg2',bgm='race',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.row<20 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='checkLine_400',
bg='rainbow',bgm='push',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.row<400 then return end
local T=P.stat.time

View File

@@ -4,9 +4,9 @@ return{
eventSet='checkLine_40',
bg='bg2',bgm='race',
},
score=function(P)return{P.stat.time,P.stat.piece}end,
scoreDisp=function(D)return STRING.time(D[1]).." "..D[2].." Pieces"end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.time,P.stat.piece} end,
scoreDisp=function(D) return STRING.time(D[1]).." "..D[2].." Pieces" end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
if P.stat.row<40 then return end
local T=P.stat.time

View File

@@ -5,9 +5,9 @@ return{
bg='bg2',bgm='push',
},
slowMark=true,
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -5,9 +5,9 @@ return{
bg='bg2',bgm='push',
},
slowMark=true,
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -5,9 +5,9 @@ return{
bg='bg2',bgm='secret8th',
},
slowMark=true,
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -5,9 +5,9 @@ return{
bg='bg2',bgm='secret8th',
},
slowMark=true,
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -5,9 +5,9 @@ return{
bg='bg2',bgm='secret7th',
},
slowMark=true,
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -5,9 +5,9 @@ return{
bg='bg2',bgm='secret7th',
},
slowMark=true,
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{math.min(P.stat.row,200),P.stat.time} end,
scoreDisp=function(D) return D[1].." Lines "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local L=P.stat.row
return

View File

@@ -5,9 +5,9 @@ return{
eventSet='survivor_e',
bg='glow',bgm='new era',
},
score=function(P)return{P.modeData.wave,P.stat.time}end,
scoreDisp=function(D)return D[1].." Waves "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.time} end,
scoreDisp=function(D) return D[1].." Waves "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -5,9 +5,9 @@ return{
eventSet='survivor_h',
bg='glow',bgm='new era',
},
score=function(P)return{P.modeData.wave,P.stat.time}end,
scoreDisp=function(D)return D[1].." Waves "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.time} end,
scoreDisp=function(D) return D[1].." Waves "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -5,9 +5,9 @@ return{
eventSet='survivor_l',
bg='glow',bgm='here',
},
score=function(P)return{P.modeData.wave,P.stat.time}end,
scoreDisp=function(D)return D[1].." Waves "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.time} end,
scoreDisp=function(D) return D[1].." Waves "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -5,9 +5,9 @@ return{
eventSet='survivor_n',
bg='glow',bgm='new era',
},
score=function(P)return{P.modeData.wave,P.stat.time}end,
scoreDisp=function(D)return D[1].." Waves "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.time} end,
scoreDisp=function(D) return D[1].." Waves "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -7,9 +7,9 @@ return{
eventSet='survivor_u',
bg='welcome',bgm='here',
},
score=function(P)return{P.modeData.wave,P.stat.time}end,
scoreDisp=function(D)return D[1].." Waves "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.modeData.wave,P.stat.time} end,
scoreDisp=function(D) return D[1].." Waves "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local W=P.modeData.wave
return

View File

@@ -8,9 +8,9 @@ return{
bg='flink',bgm='infinite',
},
slowMark=true,
score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.atk<=100 and math.floor(P.stat.atk) or 100,P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local A=P.stat.atk
if A>=100 then

View File

@@ -21,9 +21,9 @@ return{
bg='flink',bgm='infinite',
},
slowMark=true,
score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.atk<=100 and math.floor(P.stat.atk) or 100,P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local A=P.stat.atk
if A>=100 then

View File

@@ -6,9 +6,9 @@ return{
eventSet='checkAttack_100',
bg='matrix',bgm='down',
},
score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.atk<=100 and math.floor(P.stat.atk) or 100,P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local A=P.stat.atk
if A>=100 then

View File

@@ -1,7 +1,7 @@
local function tech_check_hard(P)
local C=P.lastPiece
if C.row>0 then
if not(C.spin or C.pc)then
if not (C.spin or C.pc) then
P:lose()
return
end
@@ -19,9 +19,9 @@ return{
eventSet='checkAttack_100',
bg='matrix',bgm='down',
},
score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.atk<=100 and math.floor(P.stat.atk) or 100,P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local A=P.stat.atk
if A>=100 then

View File

@@ -6,9 +6,9 @@ return{
eventSet='checkAttack_100',
bg='matrix',bgm='warped',
},
score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.atk<=100 and math.floor(P.stat.atk) or 100,P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local A=P.stat.atk
if A>=100 then

View File

@@ -1,7 +1,7 @@
local function tech_check_hard(P)
local C=P.lastPiece
if C.row>0 then
if not(C.spin or C.pc)then
if not (C.spin or C.pc) then
P:lose()
return
end
@@ -19,9 +19,9 @@ return{
eventSet='checkAttack_100',
bg='matrix',bgm='warped',
},
score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.atk<=100 and math.floor(P.stat.atk) or 100,P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local A=P.stat.atk
if A>=100 then

View File

@@ -6,9 +6,9 @@ return{
eventSet='checkAttack_100',
bg='matrix',bgm='new era',
},
score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.atk<=100 and math.floor(P.stat.atk) or 100,P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local A=P.stat.atk
if A>=100 then

View File

@@ -1,7 +1,7 @@
local function tech_check_hard(P)
local C=P.lastPiece
if C.row>0 then
if not(C.spin or C.pc)then
if not (C.spin or C.pc) then
P:lose()
return
end
@@ -19,9 +19,9 @@ return{
eventSet='checkAttack_100',
bg='matrix',bgm='new era',
},
score=function(P)return{P.stat.atk<=100 and math.floor(P.stat.atk)or 100,P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..STRING.time(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[2]end,
score=function(P) return{P.stat.atk<=100 and math.floor(P.stat.atk) or 100,P.stat.time} end,
scoreDisp=function(D) return D[1].." Attack "..STRING.time(D[2]) end,
comp=function(a,b) return a[1]>b[1] or a[1]==b[1] and a[2]<b[2] end,
getRank=function(P)
local A=P.stat.atk
if A>=100 then

View File

@@ -12,18 +12,18 @@ return{
ROYALEDATA.powerUp={2,5,10,20}
ROYALEDATA.stage={30,20,15,10,5}
PLY.newPlayer(1)
local L={}for i=1,49 do L[i]=true end
local L={} for i=1,49 do L[i]=true end
local t=2
while t>0 do
local r=math.random(2,49)
if L[r]then
if L[r] then
L[r]=false
t=t-1
end
end
local n=2
for _=1,4 do for _=1,6 do
if L[n]then
if L[n] then
PLY.newAIPlayer(n,BOT.template{type='9S',speedLV=math.random(4,6),hold=true},true)
else
PLY.newAIPlayer(n,BOT.template{type='CC',speedLV=math.random(2,4),next=2,hold=true,node=20000},true)
@@ -31,7 +31,7 @@ return{
n=n+1
end end
for _=9,12 do for _=1,6 do
if L[n]then
if L[n] then
PLY.newAIPlayer(n,BOT.template{type='9S',speedLV=math.random(4,5),hold=true},true)
else
PLY.newAIPlayer(n,BOT.template{type='CC',speedLV=math.random(3,5),next=2,hold=true,node=20000},true)
@@ -39,9 +39,9 @@ return{
n=n+1
end end
end,
score=function(P)return{P.modeData.place,P.modeData.ko}end,
scoreDisp=function(D)return"NO."..D[1].." KO:"..D[2]end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]>b[2]end,
score=function(P) return{P.modeData.place,P.modeData.ko} end,
scoreDisp=function(D) return"NO."..D[1].." KO:"..D[2] end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]>b[2] end,
getRank=function(P)
local R=P.modeData.place
return

View File

@@ -12,18 +12,18 @@ return{
ROYALEDATA.powerUp={2,5,10,20}
ROYALEDATA.stage={30,20,15,10,5}
PLY.newPlayer(1)
local L={}for i=1,49 do L[i]=true end
local L={} for i=1,49 do L[i]=true end
local t=4
while t>0 do
local r=math.random(2,49)
if L[r]then
if L[r] then
L[r]=false
t=t-1
end
end
local n=2
for _=1,4 do for _=1,6 do
if L[n]then
if L[n] then
PLY.newAIPlayer(n,BOT.template{type='9S',speedLV=math.random(4,8),hold=true},true)
else
PLY.newAIPlayer(n,BOT.template{type='CC',speedLV=math.random(3,6),next=3,hold=true,node=30000},true)
@@ -31,7 +31,7 @@ return{
n=n+1
end end
for _=9,12 do for _=1,6 do
if L[n]then
if L[n] then
PLY.newAIPlayer(n,BOT.template{type='9S',speedLV=math.random(4,7),hold=true},true)
else
PLY.newAIPlayer(n,BOT.template{type='CC',speedLV=math.random(4,6),next=3,hold=true,node=30000},true)
@@ -39,9 +39,9 @@ return{
n=n+1
end end
end,
score=function(P)return{P.modeData.place,P.modeData.ko}end,
scoreDisp=function(D)return"NO."..D[1].." KO:"..D[2]end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]>b[2]end,
score=function(P) return{P.modeData.place,P.modeData.ko} end,
scoreDisp=function(D) return"NO."..D[1].." KO:"..D[2] end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]>b[2] end,
getRank=function(P)
local R=P.modeData.place
return

View File

@@ -12,18 +12,18 @@ return{
ROYALEDATA.powerUp={2,5,10,20}
ROYALEDATA.stage={30,20,15,10,5}
PLY.newPlayer(1)
local L={}for i=1,49 do L[i]=true end
local L={} for i=1,49 do L[i]=true end
local t=6
while t>0 do
local r=math.random(2,49)
if L[r]then
if L[r] then
L[r]=false
t=t-1
end
end
local n=2
for _=1,4 do for _=1,6 do
if L[n]then
if L[n] then
PLY.newAIPlayer(n,BOT.template{type='9S',speedLV=math.random(8,10),hold=true},true)
else
PLY.newAIPlayer(n,BOT.template{type='CC',speedLV=math.random(4,7),next=3,hold=true,node=40000},true)
@@ -31,7 +31,7 @@ return{
n=n+1
end end
for _=9,12 do for _=1,6 do
if L[n]then
if L[n] then
PLY.newAIPlayer(n,BOT.template{type='9S',speedLV=math.random(8,9),hold=true},true)
else
PLY.newAIPlayer(n,BOT.template{type='CC',speedLV=math.random(5,8),next=3,hold=true,node=40000},true)
@@ -39,9 +39,9 @@ return{
n=n+1
end end
end,
score=function(P)return{P.modeData.place,P.modeData.ko}end,
scoreDisp=function(D)return"NO."..D[1].." KO:"..D[2]end,
comp=function(a,b)return a[1]<b[1]or a[1]==b[1]and a[2]>b[2]end,
score=function(P) return{P.modeData.place,P.modeData.ko} end,
scoreDisp=function(D) return"NO."..D[1].." KO:"..D[2] end,
comp=function(a,b) return a[1]<b[1] or a[1]==b[1] and a[2]>b[2] end,
getRank=function(P)
local R=P.modeData.place
return

Some files were not shown because too many files have changed in this diff Show More