Files
Techmino/parts/modes/solo_e.lua
MrZ626 9b1f9fa9dd 整理模式代码:
移除无用的pauseLimit
移除重复的模式load函数(自动创建一个玩家)
2021-08-03 02:05:13 +08:00

28 lines
512 B
Lua

return{
color=COLOR.cyan,
env={
life=2,
drop=60,lock=60,
freshLimit=15,
bufferLimit=20,
bg='bg2',bgm='battle',
},
load=function()
PLY.newPlayer(1)
PLY.newAIPlayer(2,AIBUILDER('9S',4))
end,
score=function(P)return{P.stat.time}end,
scoreDisp=function(D)return STRING.time(D[1])end,
comp=function(a,b)return a[1]<b[1]end,
getRank=function(P)
if P.result=='win'then
local T=P.stat.time
return
T<=50 and 5 or
T<=80 and 4 or
T<=120 and 3 or
T<=180 and 2 or
1
end
end,
}