Files
Techmino/parts/modes/backfire_u.lua
MrZ_26 06f4bb4e1a 整 理 代 码
(应该没有改到字符串里面的东西吧…)起码不直接影响运行
2022-10-01 11:32:11 +08:00

35 lines
959 B
Lua

return{
env={
drop=2,lock=30,
freshLimit=10,
hook_drop={
require'parts.eventsets.backfire_0'.hook_drop,
require'parts.eventsets.checkAttack_100'.hook_drop,
},
mesDisp=function(P)
setFont(60)
GC.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<60 and 5 or
T<80 and 4 or
T<120 and 3 or
T<180 and 2 or
1
else
return
L>=50 and 0
end
end,
}