From 9c14005cde16a63cbeb5987302b10ff14d4f660c Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 28 Nov 2020 06:32:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83player.drop=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/player.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/parts/player/player.lua b/parts/player/player.lua index 521f5db1..12eefac1 100644 --- a/parts/player/player.lua +++ b/parts/player/player.lua @@ -797,7 +797,7 @@ do--Player.drop(P)--Place piece local STAT=P.stat local piece=P.lastPiece - local lose + local finish local cmb=P.combo local CB,CX,CY=P.cur,P.curX,P.curY local clear--If clear with no line fall @@ -975,7 +975,7 @@ do--Player.drop(P)--Place piece if finePts<5 then STAT.extraPiece=STAT.extraPiece+1 if ENV.fineKill then - lose=true + finish=true end if P.sound then if ENV.fineKill then @@ -1115,7 +1115,7 @@ do--Player.drop(P)--Place piece if not piece.special then P.b2b=max(P.b2b-250,0) if P.b2b<50 and ENV.b2bKill then - lose=true + finish=true end P:showText(text.clear[cc],0,-30,35,"appear",(8-cc)*.3) atk=cc-.5 @@ -1266,12 +1266,12 @@ do--Player.drop(P)--Place piece SFX.play("reach") if P.curMission>#ENV.mission then P.curMission=nil - P:win("finish") + if not finish then finish="finish"end end elseif ENV.missionKill then P:showText(text.missionFailed,0,140,40,"flicker",.5) SFX.play("finesseError_long",.6) - lose=true + finish=true end end @@ -1303,12 +1303,12 @@ do--Player.drop(P)--Place piece _=STAT.clears _[cc]=_[cc]+1--Clear[1~5] end - if lose then - P:lose() + if finish then + if finish==true then P:lose()end + _=ENV.dropPiece if _ then _(P)end + if finish then P:win(finish)end else - --Drop event - _=ENV.dropPiece - if _ then _(P)end + _=ENV.dropPiece if _ then _(P)end end end end