Files
Techmino/parts/AITemplate.lua
2020-12-14 23:26:16 +08:00

19 lines
380 B
Lua

local AISpeed={60,50,40,30,20,14,10,6,4,3}
return function(type,speedLV,next,hold,node)
if type=="CC"then
if not hold then hold=false else hold=true end
return{
type="CC",
nextCount=next,
holdCount=hold,
delta=AISpeed[speedLV],
node=node,
}
elseif type=="9S"then
return{
type="9S",
delta=math.floor(AISpeed[speedLV]),
holdCount=hold,
}
end
end