Skip to content

Commit

Permalink
整理代码
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Jul 25, 2024
1 parent 1afcf80 commit 3d6356d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions assets/game/mode/brik/exterior/sequence.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ local function cutField_event_always(P)
P.modeData.initTimer=P.modeData.initTimer-1
if P.modeData.initTimer==872 then
local mat=P.field._matrix
local cutHeight=#mat<=5 and 3 or 4
while #mat>=cutHeight do table.remove(mat) end
local cutHeight=#mat<=5 and 2 or 3
while #mat>cutHeight do table.remove(mat) end
P:createMoveEffect(1,cutHeight,P.settings.fieldW,20)
P:playSound('frenzy')
elseif P.modeData.initTimer<=0 then
Expand Down
12 changes: 9 additions & 3 deletions assets/game/mode/brik/exterior/sprint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -142,15 +142,21 @@ return {
function(P)
if PROGRESS.getExteriorUnlock('hidden') then return true end
if P.stat.line>=40 then
if P.stat.piece<102.6 then
PROGRESS.setExteriorUnlock('sequence')
end
if P.stat.clears[1]+P.stat.clears[2]+P.stat.clears[3]==0 then
PROGRESS.setExteriorUnlock('hidden')
end
return true
end
end,
function(P)
if PROGRESS.getExteriorUnlock('sequence') then return true end
if P.stat.line>=40 then
if P.stat.piece<102.6 then
PROGRESS.setExteriorUnlock('sequence')
end
return true
end
end,
},
drawInField=mechLib.brik.misc.lineClear_event_drawInField,
-- drawOnPlayer=mechLib.brik.misc.lineClear_event_drawOnPlayer,
Expand Down

0 comments on commit 3d6356d

Please sign in to comment.