diff --git a/assets/game/mechanicLib/mino/progress.lua b/assets/game/mechanicLib/mino/progress.lua index c827b208..e1615a3d 100644 --- a/assets/game/mechanicLib/mino/progress.lua +++ b/assets/game/mechanicLib/mino/progress.lua @@ -13,6 +13,9 @@ do-- sprint_40 end P.modeData.maxHeight=math.max(P.modeData.maxHeight or 0,P.field:getHeight()) if P.finished then + if P.gameTime<=86 then + PROGRESS.setMinoModeUnlocked('sprint_hide_40') + end if P.modeData.maxHeight<=8 then PROGRESS.setMinoModeUnlocked('sprint_10') end @@ -21,6 +24,15 @@ do-- sprint_40 end end +do-- sprint_10 + function progress.sprint_10_afterClear(P,clear) + if not P.isMain then return true end + if P.finished then + PROGRESS.setMinoModeUnlocked('sprint_obstacle_20') + end + end +end + do-- sprint_200 local bgmTransBegin,bgmTransFinish=100,150 function progress.sprint_200_afterClear(P,clear) @@ -44,6 +56,59 @@ do-- sprint_1000 end end +do-- sprint_obstacle_20 + local bgmTransBegin,bgmTransFinish=5,15 + function progress.sprint_obstacle_20_afterClear(P,clear) + if not P.isMain then return true end + if P.modeData.line>bgmTransBegin and P.modeData.linebgmTransBegin and P.modeData.linebgmTransBegin and P.modeData.linebgmTransBegin and P.modeData.linebgmTransBegin and P.modeData.linebgmTransBegin and P.modeData.lineP.modeData.marathon_lastLevel then diff --git a/assets/game/mode/mino/exterior/sprint_10.lua b/assets/game/mode/mino/exterior/sprint_10.lua index b295acd9..cf8cdd55 100644 --- a/assets/game/mode/mino/exterior/sprint_10.lua +++ b/assets/game/mode/mino/exterior/sprint_10.lua @@ -7,7 +7,10 @@ return { settings={mino={ seqType='bag7_sprint', event={ - playerInit=mechLib.mino.statistics.event_playerInit, + playerInit={ + mechLib.mino.statistics.event_playerInit, + "P:addEvent('afterClear',mechLib.mino.progress.sprint_10_afterClear)", + }, afterClear={ mechLib.mino.statistics.event_afterClear, mechLib.mino.sprint.event_afterClear[10], diff --git a/assets/game/mode/mino/exterior/sprint_drought_40.lua b/assets/game/mode/mino/exterior/sprint_drought_40.lua index a3b02763..af823be7 100644 --- a/assets/game/mode/mino/exterior/sprint_drought_40.lua +++ b/assets/game/mode/mino/exterior/sprint_drought_40.lua @@ -1,5 +1,3 @@ -local bgmTransBegin,bgmTransFinish=10,30 - return { initialize=function() GAME.newPlayer(1,'mino') @@ -9,15 +7,13 @@ return { settings={mino={ seqType='bag12_drought', event={ - playerInit=mechLib.mino.statistics.event_playerInit, + playerInit={ + mechLib.mino.statistics.event_playerInit, + "P:addEvent('afterClear',mechLib.mino.progress.sprint_drought_40_afterClear)", + }, afterClear={ mechLib.mino.statistics.event_afterClear, mechLib.mino.sprint.event_afterClear[40], - function(P) - if P.modeData.line>bgmTransBegin and P.modeData.linebgmTransBegin and P.modeData.linebgmTransBegin and P.modeData.linebgmTransBegin and P.modeData.linebgmTransBegin and P.modeData.linebgmTransBegin and P.modeData.line