防守模式改为缓冲超过一定数量后就不再生成新的攻击
This commit is contained in:
@@ -13,14 +13,15 @@ return {
|
|||||||
coroutine.yield()
|
coroutine.yield()
|
||||||
if P.control then
|
if P.control then
|
||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
D.counter=D.counter+1
|
D.timer=D.timer+1
|
||||||
|
if P.atkBufferSum<30 then
|
||||||
local t=
|
local t=
|
||||||
D.wave<=60 and 240-2*D.wave or
|
D.wave<=60 and 240-2*D.wave or
|
||||||
D.wave<=120 and 120-(D.wave-60) or
|
D.wave<=120 and 120-(D.wave-60) or
|
||||||
D.wave<=180 and math.floor(60-(D.wave-120)*.5) or
|
D.wave<=180 and math.floor(60-(D.wave-120)*.5) or
|
||||||
30
|
30
|
||||||
if D.counter>=t then
|
if D.timer>=t then
|
||||||
D.counter=0
|
D.timer=0
|
||||||
for _=1,4 do
|
for _=1,4 do
|
||||||
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=1,countdown=5*t,cd0=5*t,time=0,sent=false,lv=2})
|
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=1,countdown=5*t,cd0=5*t,time=0,sent=false,lv=2})
|
||||||
end
|
end
|
||||||
@@ -44,5 +45,6 @@ return {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,14 +13,15 @@ return {
|
|||||||
coroutine.yield()
|
coroutine.yield()
|
||||||
if P.control then
|
if P.control then
|
||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
D.counter=D.counter+1
|
D.timer=D.timer+1
|
||||||
|
if P.atkBufferSum<20 then
|
||||||
local t=
|
local t=
|
||||||
D.wave<=40 and 360-D.wave*4 or
|
D.wave<=40 and 360-D.wave*4 or
|
||||||
D.wave<=80 and 200-(D.wave-40)*2 or
|
D.wave<=80 and 200-(D.wave-40)*2 or
|
||||||
D.wave<=140 and 120-(D.wave-80) or
|
D.wave<=140 and 120-(D.wave-80) or
|
||||||
60
|
60
|
||||||
if D.counter>=t then
|
if D.timer>=t then
|
||||||
D.counter=0
|
D.timer=0
|
||||||
for _=1,3 do
|
for _=1,3 do
|
||||||
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=1,countdown=2*t,cd0=2*t,time=0,sent=false,lv=1})
|
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=1,countdown=2*t,cd0=2*t,time=0,sent=false,lv=1})
|
||||||
end
|
end
|
||||||
@@ -45,4 +46,5 @@ return {
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user