CC移动速度加强,ai模式调平

This commit is contained in:
MrZ626
2020-10-12 10:01:17 +08:00
parent d3fcde7507
commit a25f3be6db
13 changed files with 29 additions and 25 deletions

View File

@@ -1,4 +1,4 @@
local AISpeed={60,45,30,24,18,12,8,5,4,3}
local AISpeed={60,45,30,20,15,10,6,4,3,2}
return function(type,speedLV,next,hold,node)
if type=="CC"then
return{
@@ -11,7 +11,7 @@ return function(type,speedLV,next,hold,node)
elseif type=="9S"then
return{
type="9S",
delta=math.floor(AISpeed[speedLV]*.5),
delta=math.floor(AISpeed[speedLV]),
}
end
end

View File

@@ -192,8 +192,12 @@ local function Pupdate_alive(P,dt)
P.AI_stage=AIfunc[P.AI_mode][P.AI_stage](P,C)
elseif P.AI_delay<=0 then
P:pressKey(C[1])P:releaseKey(C[1])
if P.AI_mode~="CC"or C[1]>3 then
P.AI_delay=P.AI_delay0*2
else
P.AI_delay=P.AI_delay0*.5
end
rem(C,1)
P.AI_delay=P.AI_delay0*2
end
end