整理代码习惯,常量字符串改用单引号,可能有遗漏

This commit is contained in:
MrZ626
2021-04-30 01:00:22 +08:00
parent 7676f32cf2
commit eda6c0d746
213 changed files with 2503 additions and 2499 deletions

View File

@@ -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