新增noInitSZO模式参数 close #121

This commit is contained in:
MrZ626
2021-07-17 02:29:33 +08:00
parent cbbb04655b
commit ef88d3e437
10 changed files with 23 additions and 4 deletions

View File

@@ -81,6 +81,7 @@
missionKill false 是否开启强制任务
dropPiece NULL 放一块后要执行的函数,输入玩家对象
task NULL 每帧会*继续执行*的函数,输入玩家对象,注意:使用协程技术
noInitSZO false 是否禁止SZO块开局如果禁止开局序列会自动跳过最多连续五个SZO
bg 'none' 背景,只能填写内置背景的名字
bgm 'race' 背景音乐名(或者列表随机,例如{'race','push'}),只能用内置音乐库的音乐名

View File

@@ -22,6 +22,7 @@ return{
end
end
end,
noInitSZO=true,
bg='cubes',bgm='push',
},
pauseLimit=true,

View File

@@ -5,6 +5,7 @@ return{
color=COLOR.green,
env={
noTele=true,
mindas=7,minarr=1,minsdarr=1,
drop=60,wait=8,fall=20,
task=function(P)P.modeData.target=10 end,
dropPiece=function(P)
@@ -18,7 +19,7 @@ return{
end
end
end,
mindas=7,minarr=1,minsdarr=1,
noInitSZO=true,
bg='bg2',bgm='push',
},
pauseLimit=true,

View File

@@ -23,6 +23,7 @@ return{
visible='fast',
freshLimit=15,
dropPiece=score,
noInitSZO=true,
task=function(P)
P.modeData.rankPoint=0
P.modeData.rankName=sectionName[1]

View File

@@ -53,6 +53,7 @@ return{
end,
freshLimit=15,
easyFresh=false,bone=true,
noInitSZO=true,
bg='lightning',bgm='rectification',
},
slowMark=true,

View File

@@ -50,6 +50,7 @@ return{
wait=rush_wait[1],
fall=rush_fall[1],
dropPiece=score,
noInitSZO=true,
task=function(P)
P.modeData.pt=0
P.modeData.target=100

View File

@@ -142,6 +142,7 @@ return{
mission={4,4,4,64},
missionKill=true,
freshLimit=12,
noInitSZO=true,
bg='none',bgm='super7th',
},
slowMark=true,

View File

@@ -65,6 +65,7 @@ return{
P.modeData.target=100
end,
freshLimit=15,
noInitSZO=true,
bg='bg2',bgm='secret7th',
},
slowMark=true,

View File

@@ -49,14 +49,14 @@ return{
freshLimit=1e99,easyFresh=true,
bufferLimit=1e99,
fkey1=false,
fkey2=false,
fkey1=false,fkey2=false,
keyCancel={},
fine=false,fineKill=false,
b2bKill=false,
missionKill=false,
dropPiece=NULL,
mindas=0,minarr=0,minsdarr=0,
noInitSZO=false,
bg='none',bgm='race',
allowMod=true,

View File

@@ -319,7 +319,18 @@ local function applyGameEnv(P)--Finish gameEnv processing
if ENV.nextCount==0 then ENV.nextPos=false end
P.newNext=coroutine.wrap(seqGenerators(P))
P.newNext(P,P.gameEnv.seqData)
P:newNext(P.gameEnv.seqData)
if ENV.noInitSZO then
for _=1,5 do
local C=P.nextQueue[1]
if C and(C.id==1 or C.id==2 or C.id==6)then
table.remove(P.nextQueue,1)
else
break
end
end
P:newNext()
end
if P.miniMode then
ENV.lockFX=false