修复经典模式通关就报错

整理代码
This commit is contained in:
MrZ_26
2022-04-17 20:57:40 +08:00
parent 2ae34bded1
commit 0c2f0904ef
8 changed files with 14 additions and 14 deletions

View File

@@ -67,7 +67,7 @@ return{
D.lvl=D.lvl+1
end
local dropSpd=GetGravity(D.lvl)
if D.target==200 then P.win('finish') return
if D.target==200 then P:win('finish') return
elseif dropSpd~=P.gameEnv.drop then
P.gameEnv.drop,P.gameEnv.lock=dropSpd,dropSpd
P.gameEnv.sddas,P.gameEnv.sdarr=dropSpd,dropSpd

View File

@@ -67,7 +67,7 @@ return{
D.lvl=D.lvl+1
end
local dropSpd=GetGravity(D.lvl)
if D.target==200 then P.win('finish') return
if D.target==200 then P:win('finish') return
elseif dropSpd~=P.gameEnv.drop then
P.gameEnv.drop,P.gameEnv.lock=dropSpd,dropSpd
P.gameEnv.sddas,P.gameEnv.sdarr=dropSpd,dropSpd

View File

@@ -63,7 +63,7 @@ return{
local D=P.modeData
D.drought=P.lastPiece.id==7 and 0 or D.drought+1
if P.stat.row>=D.target then
if D.target>=200 then P.win('finish') return end
if D.target>=200 then P:win('finish') return end
SFX.play('reach')
D.lvl=D.lvl+1
D.target=D.target+10