2,544
个编辑
小 (world) |
小 (establish) |
||
第63行: | 第63行: | ||
function p.world() | function p.world() | ||
local world = mw.title.new "世界模式地图详表 (移动版)":getContent() | local world = mw.title.new "世界模式地图详表 (移动版)":getContent() | ||
local | local lim, ord = {}, {} | ||
local res = ord | |||
for name, wtb in world:gmatch "== *(.-) *==[^={]+(%b{})" do | for name, wtb in world:gmatch "== *(.-) *==[^={]+(%b{})" do | ||
if name:sub(1, 1) == "B" then break end | if name:sub(1, 1) == "B" then break end | ||
if name:sub(1, 3) == "限" then res = lim end | |||
local tot | local tot | ||
for stair, reward in wtb:gmatch "| *(%d+)[0-9()%-| ]+(%b[])" do | for stair, reward in wtb:gmatch "| *(%d+)[0-9()%-| ]+(%b[])" do | ||
第74行: | 第76行: | ||
end | end | ||
end | end | ||
return table.concat( | return table.concat(lim, "\n") .. "\n" .. table.concat(ord, "\n") | ||
end | end | ||
个编辑