1,765
次編輯
小 (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 | ||
次編輯