Add Construct modes

This commit is contained in:
NOT_A_ROBOT
2023-09-18 12:49:17 +07:00
parent 7141f46948
commit a475232432
21 changed files with 557 additions and 195 deletions

View File

@@ -0,0 +1,21 @@
return {
env={
drop=180,lock=180,
hang=15,
eventSet='construct_sg',
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
return
G>=23 and 5 or
G>=21 and 4 or
G>=19 and 3 or
G>=15 and 2 or
G>=11 and 1 or
G>=7 and 0
end,
}