Skip to content

Commit

Permalink
修教程第六关报错
Browse files Browse the repository at this point in the history
框架跟进
  • Loading branch information
MrZ626 committed Nov 9, 2024
1 parent a4d0aab commit 2484e10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Zenitha
Submodule Zenitha updated 2 files
+3 −3 scene.lua
+2 −2 widget.lua
10 changes: 5 additions & 5 deletions assets/game/mode/brik/interior/tutorial/6.allclearPractice.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ local function newQuestion(P)
P.modeData.questCount=P.modeData.questCount+1
P.modeData.currentQuestType=
P.modeData.score<10 and (
'box_3'
-- P.modeData.questCount%2==1 and 'box_3' or 'pco3'
'box3'
-- P.modeData.questCount%2==1 and 'box3' or 'pco3'
) or
P.modeData.questCount%2==1 and 'box_4' or 'pco4'
P.modeData.questCount%2==1 and 'box4' or 'pco4'
local field,seq=mechLib.brik.allclearGenerator.newQuestion(P,{
lib=P.modeData.currentQuestType,
raw=true,
Expand Down Expand Up @@ -44,7 +44,7 @@ return {
},
event={
playerInit=function(P)
P.modeData.currentQuestType="box_3"
P.modeData.currentQuestType='box3'
P.modeData.questCount=0
P.modeData.score=0
P.modeData.protect=false
Expand All @@ -69,7 +69,7 @@ return {
if ac then
local timeUsed=(P.gameTime-P.modeData.lastPassTime)/1000
P.modeData.lastPassTime=P.gameTime
local parTime=P.modeData.currentQuestType=='box_3' and 6.26 or 10.33
local parTime=P.modeData.currentQuestType=='box3' and 6.26 or 10.33
local scoreAdd=timeUsed<parTime and not P.modeData.protect and 2 or 1
P:playSound(scoreAdd<=1 and 'beep_rise' or 'beep_notice')
P.modeData.score=math.min(P.modeData.score+scoreAdd,99)
Expand Down

0 comments on commit 2484e10

Please sign in to comment.