新增序列模式bagES(easy start),第一块不会是那些不好安排的块

使用标准包+noInitSZO序列的模式改为使用新的bagES【警告:旧的录像都会坏】
This commit is contained in:
MrZ626
2021-10-09 01:47:15 +08:00
parent 7899c3a49f
commit ef9aa8e195
11 changed files with 47 additions and 10 deletions

View File

@@ -469,7 +469,7 @@ do--Mod data
},
{no=19,id="CS",name="customSeq",
key="b",x=680,y=470,color='lB',
list={'bag','his','hisPool','c2','rnd','mess','reverb'},
list={'bag','bagES','his','hisPool','c2','rnd','mess','reverb'},
func=function(P,O)P.gameEnv.sequence=O end,
unranked=true,
},

View File

@@ -3,7 +3,7 @@ return{
env={
noTele=true,
mindas=7,minarr=1,minsdarr=1,
noInitSZO=true,
sequence="bagES",
eventSet='marathon_h',
bg='cubes',bgm='push',
},

View File

@@ -3,7 +3,7 @@ return{
env={
noTele=true,
mindas=7,minarr=1,minsdarr=1,
noInitSZO=true,
sequence="bagES",
eventSet='marathon_n',
bg='bg2',bgm='push',
},

View File

@@ -5,7 +5,7 @@ return{
das=5,arr=1,
freshLimit=15,
easyFresh=false,bone=true,
noInitSZO=true,
sequence="bagES",
eventSet='master_final',
bg='lightning',bgm='rectification',
},

View File

@@ -4,7 +4,7 @@ return{
noTele=true,
das=6,arr=1,
freshLimit=15,
noInitSZO=true,
sequence="bagES",
eventSet='master_h',
bg='bg2',bgm='secret7th',
},

View File

@@ -4,7 +4,7 @@ return{
noTele=true,
das=9,arr=3,
freshLimit=15,
noInitSZO=true,
sequence="bagES",
eventSet='master_l',
bg='bg1',bgm='secret8th',
},

View File

@@ -1,7 +1,7 @@
return{
color=COLOR.lSea,
env={
noInitSZO=true,
sequence="bagES",
eventSet='master_m',
bg='bg2',bgm='super7th',
},

View File

@@ -3,7 +3,7 @@ return{
env={
noTele=true,
das=10,arr=3,
noInitSZO=true,
sequence="bagES",
freshLimit=15,
eventSet='master_n',
bg='bg1',bgm='secret8th',

View File

@@ -5,7 +5,7 @@ return{
noTele=true,
das=6,arr=1,
freshLimit=15,
noInitSZO=true,
sequence="bagES",
eventSet='master_u',
bg='bg2',bgm='secret7th',
},

View File

@@ -20,6 +20,43 @@ local seqGenerators={
yield()
end
end,
bagES=function(P,seq0)
local rndGen=P.seqRND
local len=#seq0
local bag=TABLE.shift(seq0)
do--Get a good first-bag
--Shuffle
for i=1,len-1 do ins(bag,rem(bag,rndGen:random(len-i+1)))end
--Skip Uncomfortable minoes
for _=1,len-1 do
if
bag[1]<3 or bag[1]==6 or
bag[1]==8 or bag[1]==9 or
bag[1]==12 or bag[1]==13 or
bag[1]==17 or bag[1]==18 or
bag[1]==23 or bag[1]==24
then
ins(bag,rem(bag,1))
else
break
end
end
--Finish
for i=1,len do P:getNext(bag[i])end
end
bag={}
while true do
while #P.nextQueue<12 do
if #bag==0 then
for i=1,len do
bag[i]=seq0[len-i+1]
end
end
P:getNext(rem(bag,rndGen:random(#bag)))
end
yield()
end
end,
his=function(P,seq0)
local rndGen=P.seqRND
local len=#seq0

View File

@@ -191,7 +191,7 @@ scene.widgetList={
WIDGET.newText{name="subTitle",x=530,y=50,font=35,align='L',color='H'},
WIDGET.newSelector{name="sequence",x=1080,y=60,w=200,color='Y',
list={'bag','his','hisPool','c2','rnd','mess','reverb','loop','fixed'},
list={'bag','bagES','his','hisPool','c2','rnd','mess','reverb','loop','fixed'},
disp=CUSval('sequence'),code=CUSsto('sequence')
},