修复马拉松-困难没有reach音效

This commit is contained in:
MrZ626
2020-10-30 22:01:23 +08:00
parent edcf6f8520
commit 43fb2fc76e
3 changed files with 7 additions and 5 deletions

View File

@@ -5,9 +5,11 @@ local function check(P)
if T==50 then if T==50 then
P.gameEnv.drop=.25 P.gameEnv.drop=.25
P.gameEnv.target=100 P.gameEnv.target=100
SFX.play("reach")
elseif T==100 then elseif T==100 then
P._20G=true P._20G=true
P.gameEnv.target=200 P.gameEnv.target=200
SFX.play("reach")
else else
P:win("finish") P:win("finish")
end end
@@ -31,10 +33,10 @@ return{
mesDisp=function(P) mesDisp=function(P)
setFont(45) setFont(45)
mStr(P.stat.row,69,390) mStr(P.stat.row,69,390)
mStr(P.modeData.event*100+100,69,440) mStr(P.gameEnv.target,69,440)
gc.rectangle("fill",25,445,90,4) gc.rectangle("fill",25,445,90,4)
end, end,
score=function(P)return{P.stat.row<=200 and P.stat.row or 200,P.stat.time}end, score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..toTime(D[2])end, scoreDisp=function(D)return D[1].." Lines "..toTime(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[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) getRank=function(P)

View File

@@ -18,7 +18,7 @@ return{
env={ env={
noTele=true, noTele=true,
wait=8,fall=20, wait=8,fall=20,
target=10,dropPiece=check_LVup, dropPiece=check_LVup,
mindas=7,minarr=1,minsdarr=1, mindas=7,minarr=1,minsdarr=1,
bg="bg2",bgm="push", bg="bg2",bgm="push",
}, },
@@ -33,7 +33,7 @@ return{
mStr(P.modeData.point+10,69,440) mStr(P.modeData.point+10,69,440)
gc.rectangle("fill",25,445,90,4) gc.rectangle("fill",25,445,90,4)
end, end,
score=function(P)return{P.stat.row<=200 and P.stat.row or 200,P.stat.time}end, score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..toTime(D[2])end, scoreDisp=function(D)return D[1].." Lines "..toTime(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[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) getRank=function(P)

View File

@@ -40,7 +40,7 @@ return{
mStr(P.modeData.point+10,69,440) mStr(P.modeData.point+10,69,440)
gc.rectangle("fill",25,445,90,4) gc.rectangle("fill",25,445,90,4)
end, end,
score=function(P)return{P.stat.row<=200 and P.stat.row or 200,P.stat.time}end, score=function(P)return{math.min(P.stat.row,200),P.stat.time}end,
scoreDisp=function(D)return D[1].." Lines "..toTime(D[2])end, scoreDisp=function(D)return D[1].." Lines "..toTime(D[2])end,
comp=function(a,b)return a[1]>b[1]or a[1]==b[1]and a[2]<b[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) getRank=function(P)