跳至內容

「Module:DesignerSong」:修訂間差異

移除 637 位元組 、​ 2024年7月26日 (星期五)
無編輯摘要
無編輯摘要
無編輯摘要
行 83: 行 83:
    end
    end
    
    
  -- for _, song in ipairs(mad.listOf('songs', 'ns')) do
  --   有独占ns曲目再启用
  --    if not mobileList[song.id] and not multiId[song.id] then
--   for index, song in ipairs(listNS) do
-- for _,level in ipairs(song.difficulties) do
-- local songid = song.id
--   local designer = level.chartDesigner
-- local songDiffList = song.difficulties
--  local diff = level.ratingClass
-- if not mobileList.songid then
--  if lastDesigner ~= designer then
-- write(songid, songDiffList)
--  sameCount = 0
-- end
--   if not pickList[designer] then
-- end
--   pickList[designer] = {}
  
--   end
--   if not pickList[designer][song.id] then
--    pickList[designer][song.id] = {}
--   end
--   pickList[designer][song.id][diffList[diff+1]]=true
--   table.insert(songDiffDesigner[song.id].data, {diffList[diff+1], linkDesigner(designer, song.id)})
--    if specialSong[song.id] then
--    specialDesigner[designer]=true
--   end
--   lastDesigner=designer
--   else
--   sameCount=sameCount+1
--   table.insert(songDiffDesigner[song.id].data, {diffList[diff+1], nil})
--    songDiffDesigner[song.id].data[num-sameCount+1][3]=sameCount+1
--   end
--   num=num+1
--   end
-- 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
941

次編輯