941
次編輯
Economy666(留言 | 貢獻) 小無編輯摘要 |
Economy666(留言 | 貢獻) 小無編輯摘要 |
||
行 83: | 行 83: | ||
end | end | ||
-- 有独占ns曲目再启用 | |||
-- for index, song in ipairs(listNS) do | |||
-- local songid = song.id | |||
-- local songDiffList = song.difficulties | |||
-- if not mobileList.songid then | |||
-- write(songid, songDiffList) | |||
-- end | |||
-- end | |||
for songid, songDiffList in pairs(appendList) do | for songid, songDiffList in pairs(appendList) do | ||
write(songid, songDiffList) | write(songid, songDiffList) | ||
行 177: | 行 157: | ||
-- Function to convert table to string | -- Function to convert table to string | ||
local function t2s(tbl, indent) | -- local function t2s(tbl, indent) | ||
indent = indent or 0 | -- indent = indent or 0 | ||
local toPrint = string.rep(" ", indent) .. "{\n" | -- local toPrint = string.rep(" ", indent) .. "{\n" | ||
for k, v in pairs(tbl) do | -- for k, v in pairs(tbl) do | ||
local keyString = tostring(k) | -- local keyString = tostring(k) | ||
local valueString | -- local valueString | ||
if type(v) == "table" then | -- if type(v) == "table" then | ||
valueString = t2s(v, indent + 2) | -- valueString = t2s(v, indent + 2) | ||
else | -- else | ||
valueString = tostring(v) | -- valueString = tostring(v) | ||
end | -- end | ||
toPrint = toPrint .. string.rep(" ", indent + 2) .. "[" .. keyString .. "] = " .. valueString .. ",\n" | -- toPrint = toPrint .. string.rep(" ", indent + 2) .. "[" .. keyString .. "] = " .. valueString .. ",\n" | ||
end | -- end | ||
toPrint = toPrint .. string.rep(" ", indent) .. "}" | -- toPrint = toPrint .. string.rep(" ", indent) .. "}" | ||
return toPrint | -- return toPrint | ||
end | -- end | ||
local function songTitle(id,byd) | local function songTitle(id,byd) | ||
行 403: | 行 383: | ||
"Kero", | "Kero", | ||
"écologie" | "écologie" | ||
} | |||
local uncommon_head = { | |||
"Arcaea Charting Team", | |||
"-chartaesthesia-", | |||
"moonquay", | |||
"石樂", | |||
"絶滅", | |||
"én" | |||
} | } | ||
local uncommon_end = { | local uncommon_end = { | ||
行 417: | 行 405: | ||
local uncommonTitle = '未采用常驻谱师名义的曲目名单及所用名义' | local uncommonTitle = '未采用常驻谱师名义的曲目名单及所用名义' | ||
local uncommonText = '\n=='.. uncommonTitle .. '==\n' .. getDescription(uncommonTitle) | local uncommonText = '\n=='.. uncommonTitle .. '==\n' .. getDescription(uncommonTitle) | ||
local headText = cateText(uncommon_head, '===') | |||
local endText = cateText(uncommon_end, '===') | local endText = cateText(uncommon_end, '===') | ||
uncommonText = uncommonText ..cateText(nil, '===')..endText | uncommonText = uncommonText..headText..cateText(nil, '===')..endText | ||
return commonText..rareText..uncommonText | return commonText..rareText..uncommonText |
次編輯