Skip to content

Commit

Permalink
统计模块添加全消数
Browse files Browse the repository at this point in the history
ac练习添加简单的难度曲线
  • Loading branch information
MrZ626 committed Nov 3, 2023
1 parent 8021bc1 commit 0288f6d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions assets/game/mechanicLib/mino/statistics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions assets/game/mode/mino/exterior/ac_easy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 0288f6d

Please sign in to comment.