生存模式和进攻模式添加胜利条件

This commit is contained in:
MrZ626
2021-10-11 01:37:36 +08:00
parent 88ff734ec7
commit 956316c327
7 changed files with 123 additions and 95 deletions

View File

@@ -11,14 +11,18 @@ return{
local D=P.modeData
D.timer=D.timer+1
if D.timer>=math.max(60,150-2*D.wave)and P.atkBufferSum<4 then
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=1,countdown=30,cd0=30,time=0,sent=false,lv=1})
P.atkBufferSum=P.atkBufferSum+1
P.stat.recv=P.stat.recv+1
if D.wave==45 then
P:_showText(text.maxspeed,0,-140,100,'appear',.6)
if D.wave==100 then
P:win('finish')
else
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=1,countdown=30,cd0=30,time=0,sent=false,lv=1})
P.atkBufferSum=P.atkBufferSum+1
P.stat.recv=P.stat.recv+1
if D.wave==45 then
P:_showText(text.maxspeed,0,-140,100,'appear',.6)
end
D.timer=0
D.wave=D.wave+1
end
D.timer=0
D.wave=D.wave+1
end
end
end