From 0288f6d412882d7d6a3b32636bf37c52649a8923 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Sat, 4 Nov 2023 02:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=A8=A1=E5=9D=97=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=85=A8=E6=B6=88=E6=95=B0=20ac=E7=BB=83=E4=B9=A0?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AE=80=E5=8D=95=E7=9A=84=E9=9A=BE=E5=BA=A6?= =?UTF-8?q?=E6=9B=B2=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/game/mechanicLib/mino/statistics.lua | 4 ++++ assets/game/mode/mino/exterior/ac_easy.lua | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/game/mechanicLib/mino/statistics.lua b/assets/game/mechanicLib/mino/statistics.lua index 76686e1f..687586e9 100644 --- a/assets/game/mechanicLib/mino/statistics.lua +++ b/assets/game/mechanicLib/mino/statistics.lua @@ -9,6 +9,7 @@ function stat.event_playerInit(P) -- Initially used in minoPlayer.lua line=0, clearTime=0, clears={0,0,0,0}, + allclear=0, atk=0, sent=0, } @@ -43,6 +44,9 @@ function stat.event_afterClear(P,clear) if line%1==0 and line>0 then S.clears[line]=(S.clears[line] or 0)+1 end + if P.field:getHeight()==0 then + S.allclear=S.allclear+1 + end end function stat.event_beforeCancel(P,atk) diff --git a/assets/game/mode/mino/exterior/ac_easy.lua b/assets/game/mode/mino/exterior/ac_easy.lua index 5248ea1b..b0e6bed4 100644 --- a/assets/game/mode/mino/exterior/ac_easy.lua +++ b/assets/game/mode/mino/exterior/ac_easy.lua @@ -12,13 +12,14 @@ return { end, event={ playerInit=function(P) + P.modeData.ac=0 P.settings.das=math.max(P.settings.das,100) P.settings.arr=math.max(P.settings.arr,20) - mechLib.mino.acGenerator.newQuestion(P,{debugging=false,pieceCount=6,holdUsed=true}) + mechLib.mino.acGenerator.newQuestion(P,{debugging=false,pieceCount=3,holdUsed=true}) end, afterClear=function(P) if P.field:getHeight()==0 then - mechLib.mino.acGenerator.newQuestion(P,{debugging=false,pieceCount=6,holdUsed=true}) + mechLib.mino.acGenerator.newQuestion(P,{debugging=false,pieceCount=3+math.floor(P.modeData.stat.allclear^.626),holdUsed=true}) end end, },