生存模式和进攻模式添加胜利条件
This commit is contained in:
@@ -11,6 +11,9 @@ return{
|
|||||||
YIELD()
|
YIELD()
|
||||||
if P.control and P.atkBufferSum==0 then
|
if P.control and P.atkBufferSum==0 then
|
||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
|
if D.wave==50 then
|
||||||
|
P:win('finish')
|
||||||
|
else
|
||||||
if D.wave<20 then
|
if D.wave<20 then
|
||||||
local t=1500-30*D.wave--1500~900
|
local t=1500-30*D.wave--1500~900
|
||||||
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(4,7)),amount=12,countdown=t,cd0=t,time=0,sent=false,lv=3})
|
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(4,7)),amount=12,countdown=t,cd0=t,time=0,sent=false,lv=3})
|
||||||
@@ -22,7 +25,6 @@ return{
|
|||||||
end
|
end
|
||||||
P.atkBufferSum=P.atkBufferSum+22
|
P.atkBufferSum=P.atkBufferSum+22
|
||||||
P.stat.recv=P.stat.recv+22
|
P.stat.recv=P.stat.recv+22
|
||||||
D.wave=D.wave+1
|
|
||||||
if D.wave%10==0 then
|
if D.wave%10==0 then
|
||||||
if D.wave==20 then
|
if D.wave==20 then
|
||||||
P:_showText(text.great,0,-140,100,'appear',.6)
|
P:_showText(text.great,0,-140,100,'appear',.6)
|
||||||
@@ -31,6 +33,8 @@ return{
|
|||||||
P:_showText(text.maxspeed,0,-140,100,'appear',.6)
|
P:_showText(text.maxspeed,0,-140,100,'appear',.6)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
D.wave=D.wave+1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ return{
|
|||||||
YIELD()
|
YIELD()
|
||||||
if P.control and P.atkBufferSum<4 then
|
if P.control and P.atkBufferSum<4 then
|
||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
|
if D.wave==50 then
|
||||||
|
P:win('finish')
|
||||||
|
else
|
||||||
local s
|
local s
|
||||||
local t=800-10*D.wave--800~700~600~500
|
local t=800-10*D.wave--800~700~600~500
|
||||||
if D.wave<10 then
|
if D.wave<10 then
|
||||||
@@ -28,7 +31,6 @@ return{
|
|||||||
end
|
end
|
||||||
P.atkBufferSum=P.atkBufferSum+s
|
P.atkBufferSum=P.atkBufferSum+s
|
||||||
P.stat.recv=P.stat.recv+s
|
P.stat.recv=P.stat.recv+s
|
||||||
D.wave=D.wave+1
|
|
||||||
if D.wave%10==0 then
|
if D.wave%10==0 then
|
||||||
if D.wave==10 then
|
if D.wave==10 then
|
||||||
P:_showText(text.great,0,-140,100,'appear',.6)
|
P:_showText(text.great,0,-140,100,'appear',.6)
|
||||||
@@ -40,6 +42,8 @@ return{
|
|||||||
P:_showText(text.maxspeed,0,-140,100,'appear',.6)
|
P:_showText(text.maxspeed,0,-140,100,'appear',.6)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
D.wave=D.wave+1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ return{
|
|||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
D.timer=D.timer+1
|
D.timer=D.timer+1
|
||||||
if D.timer>=math.max(60,150-2*D.wave)and P.atkBufferSum<4 then
|
if D.timer>=math.max(60,150-2*D.wave)and P.atkBufferSum<4 then
|
||||||
|
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})
|
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.atkBufferSum=P.atkBufferSum+1
|
||||||
P.stat.recv=P.stat.recv+1
|
P.stat.recv=P.stat.recv+1
|
||||||
@@ -22,5 +25,6 @@ return{
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ return{
|
|||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
D.timer=D.timer+1
|
D.timer=D.timer+1
|
||||||
if D.timer>=math.max(60,180-2*D.wave)and P.atkBufferSum<15 then
|
if D.timer>=math.max(60,180-2*D.wave)and P.atkBufferSum<15 then
|
||||||
|
if D.wave==90 then
|
||||||
|
P:win('finish')
|
||||||
|
else
|
||||||
local s
|
local s
|
||||||
if D.wave%3<2 then
|
if D.wave%3<2 then
|
||||||
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=1,countdown=0,cd0=0,time=0,sent=false,lv=1})
|
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=1,countdown=0,cd0=0,time=0,sent=false,lv=1})
|
||||||
@@ -29,5 +32,6 @@ return{
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ return{
|
|||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
D.timer=D.timer+1
|
D.timer=D.timer+1
|
||||||
if D.timer>=math.max(60,150-D.wave)and P.atkBufferSum<20 then
|
if D.timer>=math.max(60,150-D.wave)and P.atkBufferSum<20 then
|
||||||
|
if D.wave==110 then
|
||||||
|
P:win('finish')
|
||||||
|
else
|
||||||
local t=math.max(60,90-D.wave)
|
local t=math.max(60,90-D.wave)
|
||||||
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=4,countdown=t,cd0=t,time=0,sent=false,lv=3})
|
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=4,countdown=t,cd0=t,time=0,sent=false,lv=3})
|
||||||
P.atkBufferSum=P.atkBufferSum+4
|
P.atkBufferSum=P.atkBufferSum+4
|
||||||
@@ -23,5 +26,6 @@ return{
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ return{
|
|||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
D.timer=D.timer+1
|
D.timer=D.timer+1
|
||||||
if D.timer>=math.max(90,180-2*D.wave)and P.atkBufferSum<8 then
|
if D.timer>=math.max(90,180-2*D.wave)and P.atkBufferSum<8 then
|
||||||
|
if D.wave==80 then
|
||||||
|
P:win('finish')
|
||||||
|
else
|
||||||
local d=D.wave+1
|
local d=D.wave+1
|
||||||
table.insert(P.atkBuffer,
|
table.insert(P.atkBuffer,
|
||||||
d%4==0 and{line=generateLine(P.holeRND:random(10)),amount=1,countdown=60,cd0=60,time=0,sent=false,lv=1}or
|
d%4==0 and{line=generateLine(P.holeRND:random(10)),amount=1,countdown=60,cd0=60,time=0,sent=false,lv=1}or
|
||||||
@@ -28,5 +31,6 @@ return{
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ return{
|
|||||||
local D=P.modeData
|
local D=P.modeData
|
||||||
D.timer=D.timer+1
|
D.timer=D.timer+1
|
||||||
if D.timer>=math.max(300,600-10*D.wave)and P.atkBufferSum<20 then
|
if D.timer>=math.max(300,600-10*D.wave)and P.atkBufferSum<20 then
|
||||||
|
if D.wave==35 then
|
||||||
|
P:win('finish')
|
||||||
|
else
|
||||||
local t=math.max(300,480-12*D.wave)
|
local t=math.max(300,480-12*D.wave)
|
||||||
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=4,countdown=t,cd0=t,time=0,sent=false,lv=2})
|
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=4,countdown=t,cd0=t,time=0,sent=false,lv=2})
|
||||||
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=4,countdown=t,cd0=t,time=0,sent=false,lv=3})
|
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=4,countdown=t,cd0=t,time=0,sent=false,lv=3})
|
||||||
@@ -18,7 +21,7 @@ return{
|
|||||||
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=6,countdown=1.5*t,cd0=1.5*t,time=0,sent=false,lv=5})
|
table.insert(P.atkBuffer,{line=generateLine(P.holeRND:random(10)),amount=6,countdown=1.5*t,cd0=1.5*t,time=0,sent=false,lv=5})
|
||||||
P.atkBufferSum=P.atkBufferSum+20
|
P.atkBufferSum=P.atkBufferSum+20
|
||||||
P.stat.recv=P.stat.recv+20
|
P.stat.recv=P.stat.recv+20
|
||||||
if D.wave==31 then
|
if D.wave==30 then
|
||||||
P:_showText(text.maxspeed,0,-140,100,'appear',.6)
|
P:_showText(text.maxspeed,0,-140,100,'appear',.6)
|
||||||
end
|
end
|
||||||
D.timer=0
|
D.timer=0
|
||||||
@@ -26,5 +29,6 @@ return{
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user