模块:敌舰:修订间差异
舰R百科,玩家自由编辑的战舰少女R百科
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第58行: | 第58行: | ||
p['出现场所'] = function(frame) | p['出现场所'] = function(frame) | ||
local shipId = frame.args[1] | local shipId = frame.args[1] | ||
local | local maps = { } | ||
for node, nodeFleets in pairs(fleets) do | for node, nodeFleets in pairs(fleets) do | ||
local map = node:sub(1, 3) | local map = node:sub(1, 3) | ||
| 第65行: | 第64行: | ||
for j, ship in pairs(fleet.ships) do | for j, ship in pairs(fleet.ships) do | ||
if ship == shipId then | if ship == shipId then | ||
maps[map] = true | |||
break | break | ||
end | end | ||
end | end | ||
end | end | ||
end | |||
table.sort(maps) | |||
local ret = '' | |||
for map, t in ipairs(maps) do | |||
ret = ret .. ', ' .. map | |||
end | end | ||
return ret:sub(3) | return ret:sub(3) | ||