整理代码(主要清除所有redefine-local)

This commit is contained in:
MrZ626
2020-10-30 00:01:51 +08:00
parent 1d34b22456
commit 894c17b4c0
13 changed files with 82 additions and 85 deletions

View File

@@ -51,7 +51,7 @@ return{
scoreDisp=function(D)return sectionName[int(D[1]*.1)+1].." "..D[2]end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]>b[2]end,
getRank=function(P)
local P=P.modeData.point
P=P.modeData.point
return P==80 and 5 or P>=70 and 4 or P>=60 and 3 or P>=40 and 2 or P>=20 and 1 or P>=5 and 0
end,
}

View File

@@ -18,7 +18,8 @@ local function score(P)
SFX.play("blip_1")
elseif MD.point>=100*(MD.event+1)then
--Level up!
local s=MD.event+1;MD.event=s
s=MD.event+1
MD.event=s
local E=P.gameEnv
BG.set(s==1 and"rainbow"or s==2 and"rainbow2"or s==3 and"lightning"or s==4 and"lightning2"or"lightning")
E.lock=death_lock[s]

View File

@@ -17,7 +17,8 @@ local function score(P)
SFX.play("blip_1")
elseif MD.point>=100*(MD.event+1)then
--Level up!
local s=MD.event+1;MD.event=s
s=MD.event+1
MD.event=s
local E=P.gameEnv
BG.set(s==1 and"bg1"or s==2 and"bg2"or s==3 and"rainbow"or "rainbow2")
E.lock=rush_lock[s]

View File

@@ -14,7 +14,8 @@ local function score(P)
if MD.point%100==99 then SFX.play("blip_1")end
if int(MD.point*.01)>MD.event then
--Level up!
local s=MD.event+1;MD.event=s
s=MD.event+1
MD.event=s
local E=P.gameEnv
if s<4 then
P:showTextF(text.stage:gsub("$1",s),0,-120,80,"fly")