整理代码习惯,常量字符串改用单引号,可能有遗漏
This commit is contained in:
@@ -18,17 +18,17 @@ return{
|
||||
dropPiece=update_round,
|
||||
pushSpeed=15,
|
||||
garbageSpeed=1e99,
|
||||
bg="rainbow",bgm="push",
|
||||
bg='rainbow',bgm='push',
|
||||
},
|
||||
load=function()
|
||||
PLY.newPlayer(1)
|
||||
PLY.newAIPlayer(2,AIBUILDER("CC",7,3,true,40000))
|
||||
PLY.newAIPlayer(2,AIBUILDER('CC',7,3,true,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,
|
||||
getRank=function(P)
|
||||
if P.result=="WIN"then
|
||||
if P.result=='win'then
|
||||
local T=P.stat.piece
|
||||
return
|
||||
T<=30 and 5 or
|
||||
|
||||
Reference in New Issue
Block a user