Files
Techmino/parts/modes/construct_checker.lua
MrZ_26 8c4446edac 修复拼花模式段位计算的1行偏差
补充拼花模式说明文本 close #1099
2024-03-03 14:27:36 +08:00

23 lines
609 B
Lua

return {
env={
fieldH=10,
drop=180,lock=600,
hang=40,
infHold=true,
eventSet='construct_checker',
bg='bg2',bgm='race',
},
score=function(P) return {P.modeData.maxRankPts,P.stat.piece} end,
scoreDisp=function(D) return getConstructGradeText(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.maxRankPts-1
return
G>=8 and 5 or
G>=6 and 4 or
G>=4 and 3 or
G>=2 and 2 or
G>=1 and 0
end,
}