Module:Unlock:修订间差异

添加150字节 、​ 2024年11月21日 (星期四)
v6.0 fix: mainstory2; id9/10
(fix)
(v6.0 fix: mainstory2; id9/10)
第39行: 第39行:
   '解锁$song_id $song_difficulty',
   '解锁$song_id $song_difficulty',
   'FULL RECALL通关$song_id $song_difficulty',
   'FULL RECALL通关$song_id $song_difficulty',
  '以$grade或更高的成绩通关$count次$difficulty曲目',
  '阅读剧情【$major-$minor】',
   [101] = '<small><em>Gauge:$min%-$max%</em></small>',
   [101] = '<small><em>Gauge:$min%-$max%</em></small>',
   [103] = '选择搭档「[[$id]]」',
   [103] = '选择搭档「[[$id]]」',
第53行: 第55行:
local handlers = {}
local handlers = {}
function handlers.song_id(v) return ('[[%s]]'):format(mLink[v]) end
function handlers.song_id(v) return ('[[%s]]'):format(mLink[v]) end
function handlers.song_difficulty(v) return ({[0] = '[PST]', '[PRS]', '[FTR]', '[BYD]'})[v] end
function handlers.song_difficulty(v) return '[' .. handlers.difficulty(v) .. ']' end
function handlers.difficulty(v) return ({[0] = 'PST', 'PRS', 'FTR', 'BYD', 'ETR'})[v] end
function handlers.grade(v) return v == 0 and '' or ('以 「%s」 或以上成绩'):format(({'C', 'B', 'A', 'AA', 'EX'})[v]) end
function handlers.grade(v) return v == 0 and '' or ('以 「%s」 或以上成绩'):format(({'C', 'B', 'A', 'AA', 'EX'})[v]) end
function handlers.rating(v) return v > 13 and ('%.2f'):format(v / 100) or v end
function handlers.rating(v) return v > 13 and ('%.2f'):format(v / 100) or v end
function handlers.ratingPlus(v) return v and '+' or '' end
function handlers.ratingPlus(v) return v and '+' or '' end
handlers.difficulty = handlers.song_difficulty
function handlers.id(v) return ({[45] = '拉格兰', [71] = '摩耶'})[v] end
function handlers.id(v) return ({[45] = '拉格兰', [71] = '摩耶'})[v] end
local function stringify(cond)
local function stringify(cond)
第87行: 第89行:


local function createText(view)
local function createText(view)
   local sectionCode = {unknown = 0, single = 1, free = 2, mainstory = 3, sidestory = 4, collab = 5}
   local sectionCode = {unknown = 0, single = 1, free = 2, mainstory2 = 4, mainstory = 3, sidestory = 5, collab = 6}
   local uis = {}
   local uis = {}
   for id, row in pairs(view) do
   for id, row in pairs(view) do
2,546

个编辑