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 |
个编辑