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:43, 6 June 2019
272 bytes added
,
5 years ago
no edit summary
Line 53:
Line 53:
if names[1] then
if names[1] then
for _, f in ipairs(names) do
for _, f in ipairs(names) do
−
for
_
, ship in ipairs(f.ships) do
+
for
i
, ship in ipairs(f.ships) do
−
for
_
, e in ipairs(fleet) do
+
for
j
, e in ipairs(fleet) do
−
if string.sub(e.ship, 1, string.len(ship)) == ship then
+
if
f.flagship then
−
return f.name
+
if i == 1 and j == 1 and
string.sub(e.ship, 1, string.len(ship)) == ship then
+
return f.name
+
end
+
else
+
if string.sub(e.ship, 1, string.len(ship)) == ship then
+
return f.name
+
end
end
end
end
end
がか
cssedit, gkautomate
7,064
edits