调整ai对多hold的支持

This commit is contained in:
MrZ626
2020-11-18 23:26:54 +08:00
parent 3b8a952c84
commit 340f636ea7
6 changed files with 27 additions and 29 deletions

View File

@@ -1,10 +1,11 @@
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,
hold=hold>0,
holdCount=hold,
delta=AISpeed[speedLV],
node=node,
}
@@ -12,6 +13,7 @@ return function(type,speedLV,next,hold,node)
return{
type="9S",
delta=math.floor(AISpeed[speedLV]),
holdCount=hold,
}
end
end