整理代码

This commit is contained in:
MrZ626
2021-03-05 15:31:58 +08:00
parent 15ecee6767
commit 38f5ec6393
24 changed files with 41 additions and 40 deletions

View File

@@ -24,7 +24,7 @@ return{
dropPiece=score,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.stat.time>=53.5 then
P.modeData.point=min(P.modeData.point+16,80)
P.modeData.event=sectionName[int(P.modeData.point*.1)+1]

View File

@@ -7,7 +7,7 @@ return{
pushSpeed=2,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"and P.atkBuffer.sum==0 then
local p=#P.atkBuffer+1
local B,D=P.atkBuffer,P.modeData

View File

@@ -6,7 +6,7 @@ return{
freshLimit=15,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"and P.atkBuffer.sum<4 then
local p=#P.atkBuffer+1
local B,D=P.atkBuffer,P.modeData

View File

@@ -9,7 +9,7 @@ return{
pushSpeed=2,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"then
local D=P.modeData
D.counter=D.counter+1

View File

@@ -9,7 +9,7 @@ return{
pushSpeed=1,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"then
local D=P.modeData
D.counter=D.counter+1

View File

@@ -6,7 +6,7 @@ return{
freshLimit=15,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"then
local D=P.modeData
D.counter=D.counter+1

View File

@@ -5,7 +5,7 @@ return{
freshLimit=15,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"then
local D=P.modeData
D.counter=D.counter+1

View File

@@ -8,7 +8,7 @@ local PClist=require"parts/modes/PClist"
local function task_PC(P)
local D=P.modeData
while true do
coroutine.yield()
YIELD()
D.counter=D.counter+1
if D.counter==26 then
local base=PCbase[D.type]

View File

@@ -15,7 +15,7 @@ local function task_PC(P)
local base=PCbase[D.type]
P:pushLineList(base[P:RND(#base)],D.symmetry)
end
coroutine.yield()
YIELD()
end
end
local function check(P)

View File

@@ -30,7 +30,7 @@ return{
P.modeData.beatFrame=90
P.modeData.counter=90
while true do
coroutine.yield()
YIELD()
P.modeData.counter=P.modeData.counter-1
if P.modeData.counter==0 then
P.modeData.counter=P.modeData.beatFrame

View File

@@ -30,7 +30,7 @@ return{
P.modeData.beatFrame=60
P.modeData.counter=60
while true do
coroutine.yield()
YIELD()
P.modeData.counter=P.modeData.counter-1
if P.modeData.counter==0 then
P.modeData.counter=P.modeData.beatFrame

View File

@@ -36,7 +36,7 @@ return{
P.modeData.beatFrame=30
P.modeData.counter=30
while true do
coroutine.yield()
YIELD()
P.modeData.counter=P.modeData.counter-1
if P.modeData.counter==0 then
P.modeData.counter=P.modeData.beatFrame

View File

@@ -5,7 +5,7 @@ return{
freshLimit=10,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"then
P.modeData.counter=P.modeData.counter+1
if P.modeData.counter>=math.max(60,150-2*P.modeData.event)and P.atkBuffer.sum<4 then

View File

@@ -5,7 +5,7 @@ return{
freshLimit=10,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"then
P.modeData.counter=P.modeData.counter+1
local B=P.atkBuffer

View File

@@ -5,7 +5,7 @@ return{
freshLimit=10,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"then
P.modeData.counter=P.modeData.counter+1
if P.modeData.counter>=math.max(60,150-P.modeData.event)and P.atkBuffer.sum<20 then

View File

@@ -5,7 +5,7 @@ return{
freshLimit=10,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"then
P.modeData.counter=P.modeData.counter+1
if P.modeData.counter>=math.max(90,180-2*P.modeData.event)and P.atkBuffer.sum<8 then

View File

@@ -7,7 +7,7 @@ return{
pushSpeed=2,
task=function(P)
while true do
coroutine.yield()
YIELD()
if P.control and SCN.cur=="play"then
P.modeData.counter=P.modeData.counter+1
if P.modeData.counter>=math.max(300,600-10*P.modeData.event)and P.atkBuffer.sum<20 then

View File

@@ -9,7 +9,7 @@ return{
fall=20,
task=function(P)
while true do
coroutine.yield()
YIELD()
local _=P.modeData.counter+1
if P.stat.time>=warnTime[_]then
if _<9 then