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 |