From 73d88fe00eeae83fa2c39d5fb7c92dd408e18774 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 31 Oct 2020 15:45:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=A8=A1=E5=BC=8F=E4=BC=9A=E8=A7=86?= =?UTF-8?q?=E6=83=85=E5=86=B5=E8=87=AA=E5=8A=A8=E8=A7=A3=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/main.lua b/main.lua index a771f893..952b4e07 100644 --- a/main.lua +++ b/main.lua @@ -216,6 +216,19 @@ do FILE.delRecord("solo_"..i) modeRanks["solo_"..i]=modeRanks["solo_"..i]and 0 end + for name,rank in next,modeRanks do + if rank and rank>0 then + for i=1,#Modes do + if Modes[i].name==name and Modes[i].unlock then + for _,unlockName in next,Modes[i].unlock do + if not modeRanks[unlockName]then + modeRanks[unlockName]=0 + end + end + end + end + end + end LOG.print("更新提醒:单挑模式记录删除完成",600) LOG.print("Update Warning: 1v1 records deleted",600) FILE.saveData()