代码规范:把所有的tab换成空格
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
return{
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
life=2,
|
||||
drop=60,lock=60,
|
||||
freshLimit=15,
|
||||
bufferLimit=20,
|
||||
bg='bg2',bgm='battle',
|
||||
},
|
||||
load=function()
|
||||
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,
|
||||
getRank=function(P)
|
||||
if P.result=='win'then
|
||||
local T=P.stat.time
|
||||
return
|
||||
T<=50 and 5 or
|
||||
T<=80 and 4 or
|
||||
T<=120 and 3 or
|
||||
T<=180 and 2 or
|
||||
1
|
||||
end
|
||||
end,
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
life=2,
|
||||
drop=60,lock=60,
|
||||
freshLimit=15,
|
||||
bufferLimit=20,
|
||||
bg='bg2',bgm='battle',
|
||||
},
|
||||
load=function()
|
||||
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,
|
||||
getRank=function(P)
|
||||
if P.result=='win'then
|
||||
local T=P.stat.time
|
||||
return
|
||||
T<=50 and 5 or
|
||||
T<=80 and 4 or
|
||||
T<=120 and 3 or
|
||||
T<=180 and 2 or
|
||||
1
|
||||
end
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user