From 41e58e0bd63e61e311d4f8daca9eaff7543256f6 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 18 Jul 2021 16:16:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmarathon=5Fbfmax=E6=AD=BB?= =?UTF-8?q?=E4=BA=A1=E5=88=A4=E5=AE=9A=E4=B8=8D=E5=90=88=E9=80=82=20close?= =?UTF-8?q?=20#127?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/modes/marathon_bfmax.lua | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/parts/modes/marathon_bfmax.lua b/parts/modes/marathon_bfmax.lua index c9dde278..8a27d0be 100644 --- a/parts/modes/marathon_bfmax.lua +++ b/parts/modes/marathon_bfmax.lua @@ -8,22 +8,26 @@ return{ drop=60,wait=8,fall=20, task=function(P)P.modeData.target=10 end, dropPiece=function(P) - if P.combo>1 or P.b2b>0 or P.lastPiece.row>1 then - if P.combo>1 then P:showText("2x",0,-220,40,'flicker',.3)end - if P.b2b>0 then P:showText("spin",0,-160,40,'flicker',.3)end - if P.lastPiece.row>1 then P:showText("1+",0,-100,40,'flicker',.3)end + local flag + local l=P.lastPiece + if P.combo>1 then flag=true;P:showText("2x",0,-220,40,'flicker',.3)end + if l.spin then flag=true;P:showText("spin",0,-180,40,'flicker',.3)end + if l.row>1 then flag=true;P:showText("1+",0,-140,40,'flicker',.3)end + if l.pc then flag=true;P:showText("PC",0,-100,40,'flicker',.3)end + if l.hpc then flag=true;P:showText("HPC",0,-100,40,'flicker',.3)end + if flag then P:lose() - return - end - local T=P.modeData.target - if P.stat.row>=T then - if T==200 then - P:win('finish') - else - T=T+10 - P.gameEnv.drop=dropSpeed[T/10] - P.modeData.target=T - SFX.play('reach') + else + local T=P.modeData.target + if P.stat.row>=T then + if T==200 then + P:win('finish') + else + T=T+10 + P.gameEnv.drop=dropSpeed[T/10] + P.modeData.target=T + SFX.play('reach') + end end end end,