From b27318eecf9e05bd5196ed2e709334e994d266a1 Mon Sep 17 00:00:00 2001 From: MrZ_26 Date: Wed, 5 Aug 2020 00:59:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=8A=A0=E8=BD=BD=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=97=B6=E6=A3=80=E6=B5=8B=E6=98=AF=E5=90=A6=E6=9C=89=E9=9D=9E?= =?UTF-8?q?=E6=B3=95rank?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/timer.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Zframework/timer.lua b/Zframework/timer.lua index a3300509..12c00d2e 100644 --- a/Zframework/timer.lua +++ b/Zframework/timer.lua @@ -25,6 +25,13 @@ function Tmr.load() M[k]=v end M.records=FILE.loadRecord(m.name)or M.score and{} + if M.score then + if modeRanks[M.name]==6 then + modeRanks[M.name]=0 + end + else + modeRanks[M.name]=6 + end -- M.icon=gc.newImage("image/modeIcon/"..m.icon..".png") -- M.icon=gc.newImage("image/modeIcon/custom.png") elseif S.phase==6 then @@ -237,7 +244,6 @@ function Tmr.play(dt) restartCount=restartCount+1 if restartCount>20 then TASK.clear("play") - mergeStat(stat,P1.stat) resetPartGameData() return end