整理代码
框架跟进
This commit is contained in:
@@ -8,7 +8,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control and P.atkBufferSum==0 then
|
||||
local D=P.modeData
|
||||
if D.wave==50 then
|
||||
|
||||
@@ -8,7 +8,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control and P.atkBufferSum<4 then
|
||||
local D=P.modeData
|
||||
if D.wave==50 then
|
||||
|
||||
@@ -10,7 +10,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control then
|
||||
local D=P.modeData
|
||||
D.counter=D.counter+1
|
||||
|
||||
@@ -10,7 +10,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control then
|
||||
local D=P.modeData
|
||||
D.counter=D.counter+1
|
||||
|
||||
@@ -6,7 +6,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control then
|
||||
local D=P.modeData
|
||||
D.timer=D.timer+1
|
||||
|
||||
@@ -6,7 +6,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control then
|
||||
local D=P.modeData
|
||||
D.timer=D.timer+1
|
||||
|
||||
@@ -53,7 +53,7 @@ return{
|
||||
P.modeData.rankPoint=0
|
||||
P.modeData.rankName=sectionName[1]
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.stat.frame>=3600 then
|
||||
P.modeData.rankPoint=math.min(P.modeData.rankPoint+passPoint,140)
|
||||
P.modeData.rankName=sectionName[math.floor(P.modeData.rankPoint/10)+1]
|
||||
|
||||
@@ -289,7 +289,7 @@ return{
|
||||
local decayRate={125,80,80,50,45,45,45,40,40,40,40,40,30,30,30,20,20,20,20,20,15,15,15,15,15,15,15,15,15,15,10,10,10,9,9,9,8,8,8,7,7,7,6}
|
||||
local decayTimer=0
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
P.modeData.grade=getGrade()
|
||||
P.modeData.gradePts=math.max(math.min(math.floor(int_grade_boosts[math.min(int_grade+1,#int_grade_boosts)]+rollGrades+cools+1-regrets),#gradeList),1)
|
||||
if P.stat.frame-prevSectTime > reg_time[math.ceil(P.modeData.pt/100+0.01)] and not (isInRoll or isInRollTrans) then
|
||||
@@ -336,7 +336,7 @@ return{
|
||||
rollGrades=rollGrades+(cools>8 and 1.6 or 0.5)
|
||||
P.modeData.grade=getGrade()
|
||||
P.modeData.gradePts=math.min(math.floor(int_grade_boosts[math.min(int_grade+1,#int_grade_boosts)]+rollGrades+cools+1-regrets),#gradeList)
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
P:win('finish')
|
||||
end
|
||||
end
|
||||
|
||||
@@ -72,7 +72,7 @@ return{
|
||||
P.modeData.pt=0
|
||||
P.modeData.target=100
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.holdTime==0 and P.waiting<=0 and not held then
|
||||
hidetimer=0
|
||||
held=true
|
||||
|
||||
@@ -11,7 +11,7 @@ local function task_PC(P)
|
||||
P:pushNextList(L,symmetry)
|
||||
|
||||
P.control=false
|
||||
if P.frameRun>180 then for _=1,26 do YIELD()end end
|
||||
if P.frameRun>180 then for _=1,26 do coroutine.yield()end end
|
||||
P.control=true
|
||||
|
||||
local base=PCbase[difficulty]
|
||||
|
||||
@@ -14,7 +14,7 @@ local function task_PC(P)
|
||||
P:pushNextList(L,symmetry)
|
||||
|
||||
P.control=false
|
||||
if P.frameRun>180 then for _=1,26 do YIELD()end end
|
||||
if P.frameRun>180 then for _=1,26 do coroutine.yield()end end
|
||||
P.control=true
|
||||
|
||||
local base=PCbase[difficulty]
|
||||
|
||||
@@ -7,9 +7,9 @@ return{
|
||||
PLY.draw.drawTargetLine(P,r)
|
||||
end,
|
||||
task=function(P)
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
while true do
|
||||
for _=1,P.holeRND:random(40,200)do YIELD()end
|
||||
for _=1,P.holeRND:random(40,200)do coroutine.yield()end
|
||||
local r=P.holeRND:random(7)
|
||||
if r==1 then
|
||||
if P.cur and not P:ifoverlap(P.cur.bk,P.curX-1,P.curY)then
|
||||
|
||||
@@ -6,7 +6,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control then
|
||||
local D=P.modeData
|
||||
D.timer=D.timer+1
|
||||
|
||||
@@ -6,7 +6,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control then
|
||||
local D=P.modeData
|
||||
D.timer=D.timer+1
|
||||
|
||||
@@ -6,7 +6,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control then
|
||||
local D=P.modeData
|
||||
D.timer=D.timer+1
|
||||
|
||||
@@ -6,7 +6,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control then
|
||||
local D=P.modeData
|
||||
D.timer=D.timer+1
|
||||
|
||||
@@ -6,7 +6,7 @@ return{
|
||||
end,
|
||||
task=function(P)
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
if P.control then
|
||||
local D=P.modeData
|
||||
D.timer=D.timer+1
|
||||
|
||||
@@ -21,7 +21,7 @@ return{
|
||||
BGM.seek(0)
|
||||
P.modeData.section=1
|
||||
while true do
|
||||
YIELD()
|
||||
coroutine.yield()
|
||||
while P.stat.frame>=warnTime[P.modeData.section]do
|
||||
if P.modeData.section<9 then
|
||||
P.modeData.section=P.modeData.section+1
|
||||
|
||||
Reference in New Issue
Block a user