Module:Sandbox/InvalidData/AichanRepeat:修订间差异

完成(?
(修复读取错误)
(完成(?)
 
第9行: 第9行:
local prefList = p.getList()
local prefList = p.getList()
local allList = {}
local allList = {}
local repList = {}
local repTimes = 0
local repTimes = 0
local repSongs = 0
local repSongs = 0
local songNumber = 0


for i = 1,#prefList,1 do
for i = 1,#prefList,1 do
第22行: 第20行:
if allList[curSong] then -- when repeat
if allList[curSong] then -- when repeat
repTimes = repTimes + 1
repTimes = repTimes + 1
if repList[curSong] then -- when not first repeat
if allList[curSong] == 1 then -- when not first repeat
repList[curSong] = repList[curSong] + 1
else -- when first repeat
repList[curSong] = 1
repSongs = repSongs + 1
repSongs = repSongs + 1
end
end
allList[curSong] = allList[curSong] + 1
else -- when not repeat
else -- when not repeat
songNumber = songNumber + 1
allList[curSong] = 1
allList[songNumber] = curSong
end
end
end
end
684

个编辑