Module:沙盒/盐棋/Sandbox1:修订间差异

添加83字节 、​ 2022年5月7日 (星期六)
try 2
(try 1)
(try 2)
第47行: 第47行:
local board={[0]="light",[1]="conflict"}
local board={[0]="light",[1]="conflict"}
if info["bg"]=="" then info["bg"] = "base_"..board[info["side"]]
if info["bg"]=="" then info["bg"] = "base_"..board[info["side"]]
elseif info["difficulties"][3]["bg"] then-- aterlbus
else-- aterlbus
p.cfg["bgOverride"]=info["difficulties"][3]["bg"]
p.cfg["bgOverride"]=info["difficulties"][3]["bg"]
end
end
第62行: 第62行:


local function JacketFilter(info)
local function JacketFilter(info)
if info["jacket_localized"] then-- solitarydream
if opChain(function ()return info["difficulties"][4]["jacketOverride"] end) then
cfgPush("jacketOverride","byd")
p.cfg.jacketDesigner=info["difficulties"][4]["jacketDesigner"]
elseif info["difficulties"][1]["jacketOverride"] then-- stager, avril, lanota2
cfgPush("jacketOverride","pstprs")
elseif info["jacket_localized"] then-- solitarydream
cfgPush("jacketOverride","lang")
cfgPush("jacketOverride","lang")
end
elseif info["difficulties"][3]["jacket_night"] then-- melodyoflove
if info["difficulties"][1]["jacket_night"] then-- melodyoflove
cfgPush("jacketOverride","sunset")
cfgPush("jacketOverride","sunset")
end
if info["difficulties"][1]["jacketOverride"] then-- stager, avril, lanota2
cfgPush("jacketOverride","pstprs")
end
if opChain(function ()return info["difficulties"][4]["jacketOverride"] end) then
cfgPush("jacketOverride","byd")
end
end
return info
return info
第99行: 第97行:
local Mobile = QuerySong(LoadJson("Songlist"),args['曲名'],args['id'],BGFilter,TitleFilter,JacketFilter,AudioFilter)
local Mobile = QuerySong(LoadJson("Songlist"),args['曲名'],args['id'],BGFilter,TitleFilter,JacketFilter,AudioFilter)
local NS = QuerySong(LoadJson("Songlist NS"),args['曲名'],args['id'],NSBydFilter,BGFilter,TitleFilter,JacketFilter)
local NS = QuerySong(LoadJson("Songlist NS"),args['曲名'],args['id'],NSBydFilter,BGFilter,TitleFilter,JacketFilter)
Mobile.__config.version=string.gmatch(
Mobile.__config.version=string.match(
W.getCurrentFrame():expandTemplate{ title = ":版本更新日志" },
W.getCurrentFrame():expandTemplate{ title = ":版本更新日志" },
"(v3.11.2.....)")()
"(v%d%.%d%d?%.%d%d?)%s*|%s*" .. W.language.getContentLanguage():formatDate("Y%.n%.j","@"..Mobile["date"]) .. "%D")
local main=Mobile or NS
local main=Mobile or NS
if Mobile and NS then
if Mobile and NS then
--
--
end
end
return W.text.jsonEncode({Mobile=Mobile, NS=NS, args=args, err=(Mobile.__config.version==nil)},W.text.JSON_PRETTY)
return W.text.jsonEncode({Mobile=Mobile, NS=NS, args=args},W.text.JSON_PRETTY)
end
end


return p
return p
1,124

个编辑