Add strategy modes (#468)

* Add strategy mode
This commit is contained in:
NOT_A_ROBOT
2021-11-18 18:06:17 +07:00
committed by MrZ626
parent ff2073ed4d
commit 1670c6e7d6
6 changed files with 159 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
return{
env={
das=3,arr=1,
sequence="bagES",
eventSet='strategy_u',
bg='bg2',bgm='secret7th',
},
slowMark=true,
score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..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 L=P.stat.row
return
L>=200 and 5 or
L>=150 and 4 or
L>=80 and 3 or
L>=40 and 2 or
L>=20 and 1 or
L>=26 and 0
end,
}