尝试修复一些关卡解锁相关问题
This commit is contained in:
@@ -294,7 +294,7 @@ function gameOver()--Save record
|
|||||||
local m=M.unlock[i]
|
local m=M.unlock[i]
|
||||||
local n=MODES[m].name
|
local n=MODES[m].name
|
||||||
if not RANKS[n]then
|
if not RANKS[n]then
|
||||||
RANKS[n]=MODES[m].getRank and 0 or 6
|
if MODES[m].x then RANKS[n]=0 end
|
||||||
needSave=true
|
needSave=true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -661,7 +661,7 @@ local commands={}do
|
|||||||
if bool=="sure"then
|
if bool=="sure"then
|
||||||
for name,M in next,MODES do
|
for name,M in next,MODES do
|
||||||
if type(name)=='string'and not RANKS[name]and M.x then
|
if type(name)=='string'and not RANKS[name]and M.x then
|
||||||
RANKS[name]=M.score and 0 or 6
|
if M.x then RANKS[name]=0 end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
FILE.save(RANKS,'conf/unlock')
|
FILE.save(RANKS,'conf/unlock')
|
||||||
|
|||||||
Reference in New Issue
Block a user