调整堆积模式:
评判标准改为洞数 使用blockrain背景 检测到0.16.0版本会自动清除该模式记录
This commit is contained in:
@@ -1,30 +1,41 @@
|
||||
local function getHoleCount(P)
|
||||
local hole=0
|
||||
for x=1,10 do
|
||||
for y=1,39 do
|
||||
if not P:solid(x,y)then
|
||||
holes=holes+1
|
||||
end
|
||||
end
|
||||
end
|
||||
return hole
|
||||
end
|
||||
return{
|
||||
color=COLOR.cyan,
|
||||
env={
|
||||
drop=60,lock=60,
|
||||
drop=60,lock=90,
|
||||
freshLimit=15,
|
||||
fieldH=40,
|
||||
highCam=true,
|
||||
fillClear=false,
|
||||
seqData={1,2,3,4,5,6,7,1,2,3,4,5,6,7,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25},
|
||||
bg='none',bgm='there',
|
||||
bg='blockrain',bgm='there',
|
||||
},
|
||||
mesDisp=function(P)
|
||||
setFont(60)
|
||||
mStr(P.stat.piece,63,280)
|
||||
mText(drawableText.piece,63,350)
|
||||
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{getHoleCount(P),P.stat.time}end,
|
||||
scoreDisp=function(D)return D[1].." Holes".." "..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 B=P.stat.piece
|
||||
local H=getHoleCount(P)
|
||||
return
|
||||
B>=90 and 5 or
|
||||
B>=87 and 4 or
|
||||
B>=83 and 3 or
|
||||
B>=78 and 2 or
|
||||
B>=70 and 1 or
|
||||
0
|
||||
H==0 and 5 or
|
||||
H<=1 and 4 or
|
||||
H<=3 and 3 or
|
||||
H<=6 and 2 or
|
||||
H<=10 and 1 or
|
||||
H<=20 and 0
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user