模块:装备获得:修订间差异
舰R百科,玩家自由编辑的战舰少女R百科
更多操作
无编辑摘要 |
无编辑摘要 |
||
| (未显示2个用户的8个中间版本) | |||
| 第8行: | 第8行: | ||
local equiptName = frame.args[1] | local equiptName = frame.args[1] | ||
local ret = '' | local ret = '' | ||
for i, | for i = 1,2000 do | ||
local shipName = byIndex[ | local shipName = byIndex[i] | ||
local eq = {ships[shipName].eq1, ships[shipName].eq2, ships[shipName].eq3, ships[shipName].eq4} | if shipName ~= nil then | ||
local eq = {ships[shipName].eq1, ships[shipName].eq2, ships[shipName].eq3, ships[shipName].eq4} | |||
for k = 1, 4 do | |||
if eq[k] == equiptName then | |||
if eq[k] == eq[k-1] or eq[k] == eq[k-2] or eq[k] == eq[k-3] then | |||
break | |||
end | |||
if 1000 < ships[shipName].index and ships[shipName].index < 2000 then | |||
local shipBaseName = byIndex[i - 1000] | |||
ret = ret .. '[[' .. shipBaseName .. '|' .. shipName .. ']]、' | |||
else | |||
ret = ret .. '[[' .. shipName .. ']]、' | |||
end | |||
end | end | ||
end | end | ||