Skip to content

Commit a3e39a1

Browse files
committed
修一些interior教程成绩相关
1 parent 548c29b commit a3e39a1

File tree

4 files changed

+19
-21
lines changed

4 files changed

+19
-21
lines changed

assets/game/mode/brik/interior/tutorial/5.finessePractice.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,6 @@ return {
111111
P.modeData.targetPreview={}
112112
for i=1,3 do pushFinesseTarget(P,i) end
113113

114-
PROGRESS.setInteriorScore('tuto5_score',0)
115-
PROGRESS.setInteriorScore('tuto5_time',2600e3,'<')
116-
117114
if PROGRESS.getInteriorScore('tuto5_score')<99 then
118115
P.modeData.display=PROGRESS.getInteriorScore('tuto5_score').."/99"
119116
else

assets/game/mode/brik/interior/tutorial/7.techrashPractice.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ return {
2727
P.modeData.protect=false
2828
P.modeData.display=false
2929
P.modeData.techrashTimer=0
30-
PROGRESS.setInteriorScore('tuto7_score',0)
31-
PROGRESS.setInteriorScore('tuto7_time',2600e3,'<')
3230
end,
3331
always=function(P)
3432
if P.modeData.techrashTimer>0 then

assets/game/mode/brik/interior/tutorial/8.finessePlus.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ return {
2121
readyDelay=1,
2222
spawnDelay=62,
2323
dropDelay=2600,
24-
lockDelay=2600,
24+
lockDelay=1e99,
2525
soundEvent={
2626
countDown=NULL,
2727
drop=gameSoundFunc.drop_old,
@@ -30,8 +30,6 @@ return {
3030
playerInit=function(P)
3131
P.modeData.target.line=20
3232
P.modeData.keyCount=0
33-
34-
PROGRESS.setInteriorScore('tuto8_keys',2600,'<')
3533
P.modeData.display=PROGRESS.getInteriorScore('tuto8_keys')
3634
end,
3735
beforePress=function(P,act)

assets/progress.lua

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ local prgs=setmetatable({
1414
marathon=0,
1515
tutorial='1000', -- 0:Not Unlocked 1: Not Finished, 2: Passed, 3: Perfect Passed (unlock B side)
1616
tuto5_score=0,
17+
tuto5_time=2600e3,
1718
tuto6_score=0,
19+
tuto6_time=2600e3,
1820
tuto7_score=0,
19-
tuto8_keys=0,
20-
tuto5_time=false,
21-
tuto6_time=false,
22-
tuto7_time=false,
21+
tuto7_time=2600e3,
22+
tuto8_keys=260,
2323
},
2424
styles={
2525
brik=true,
@@ -151,17 +151,22 @@ function PROGRESS.load()
151151
end
152152
end
153153
function PROGRESS.fix()
154-
prgs.brik_stdMap=nil
155154
if type(prgs.interiorScore.tutorial)=='table' then
156155
prgs.interiorScore.tutorial='1000'
157-
prgs.tuto5_score=0
158-
prgs.tuto6_score=0
159-
prgs.tuto7_score=0
160-
prgs.tuto8_keys=0
161-
prgs.tuto5_time=false
162-
prgs.tuto6_time=false
163-
prgs.tuto7_time=false
156+
prgs.interiorScore.tuto5_score=0
157+
prgs.interiorScore.tuto5_time=false
158+
prgs.interiorScore.tuto6_score=0
159+
prgs.interiorScore.tuto6_time=false
160+
prgs.interiorScore.tuto7_score=0
161+
prgs.interiorScore.tuto7_time=false
162+
prgs.interiorScore.tuto8_keys=260
164163
end
164+
prgs.tutorial=nil
165+
prgs.tuto5_score,prgs.tuto5_time=nil,nil
166+
prgs.tuto6_score,prgs.tuto6_time=nil,nil
167+
prgs.tuto7_score,prgs.tuto7_time=nil,nil
168+
prgs.tuto8_keys=nil
169+
prgs.brik_stdMap=nil
165170
end
166171

167172
--------------------------------------------------------------
@@ -497,7 +502,7 @@ end
497502
---@param sign? '<'|'>' #default to `'>'` bigger=better, `'<'` smaller=better
498503
function PROGRESS.setInteriorScore(mode,score,sign)
499504
sign=sign or '>'
500-
score=MATH.clamp(math.floor(score),0,200)
505+
score=MATH.clamp(math.floor(score),0,260)
501506
if not prgs.interiorScore[mode] or sign=='>' and score>prgs.interiorScore[mode] or sign=='<' and score<prgs.interiorScore[mode] then
502507
prgs.interiorScore[mode]=score
503508
PROGRESS.save()

0 commit comments

Comments
 (0)