6,354
次編輯
小無編輯摘要 |
小無編輯摘要 |
||
行 23: | 行 23: | ||
p.unlock = makeInvokeFunc('_unlock') | p.unlock = makeInvokeFunc('_unlock') | ||
function p._unlock( | function p._unlock(songId) | ||
local json=require("Module:LoadJson").unlocks()['unlocks'] | local json=require("Module:LoadJson").unlocks()['unlocks'] | ||
local result={} | local result={} | ||
for i,k in ipairs(json) do | for i,k in ipairs(json) do | ||
if k['songId']== | if k['songId']==songId then | ||
result[tonumber(k['ratingClass']+1)]=k['conditions'] | result[tonumber(k['ratingClass']+1)]=k['conditions'] | ||
end | end |