Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Fleet
(view source)
Revision as of 08:39, 6 June 2019
188 bytes removed
,
5 years ago
m
Undo revision 1096125 by
がか
(
talk
)
Line 53:
Line 53:
if names[1] then
if names[1] then
for _, f in ipairs(names) do
for _, f in ipairs(names) do
−
if f.flagship and string.sub(fleet[1], 1, string.len(f.flagship)) == f.flagship then
+
for _, ship in ipairs(f.ships) do
−
return f.name
+
for _, e in ipairs(fleet) do
−
else
+
if string.sub(e.ship, 1, string.len(ship)) == ship then
−
for _, ship in ipairs(f.ships) do
+
return f.name
−
for _, e in ipairs(fleet) do
−
if string.sub(e.ship, 1, string.len(ship)) == ship then
−
return f.name
−
end
end
end
end
end
がか
cssedit, gkautomate
7,064
edits