Files
Techmino/parts/modes/backfire_l.lua
2021-11-17 10:59:34 +08:00

35 lines
949 B
Lua

return{
env={
drop=5,lock=45,
freshLimit=15,
hook_drop={
require'parts.eventsets.backfire_30'.hook_drop,
require'parts.eventsets.checkAttack_100'.hook_drop,
},
mesDisp=function(P)
setFont(60)
mStr(P.stat.atk,63,280)
mText(TEXTOBJ.atk,63,350)
end,
bg='blockhole',bgm='echo',
},
score=function(P)return{math.min(math.floor(P.stat.atk),100),P.stat.time}end,
scoreDisp=function(D)return D[1].." Attack "..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.atk
if L>=100 then
local T=P.stat.time
return
T<55 and 5 or
T<70 and 4 or
T<110 and 3 or
T<150 and 2 or
1
else
return
L>=50 and 0
end
end,
}