整理代码
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user