• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
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
+
             if f.flagship and string.sub(fleet[1], 1, string.len(f.flagship)) == f.flagship then
                for _, e in ipairs(fleet) do
+
                return f.name
                    if string.sub(e.ship, 1, string.len(ship)) == ship then
+
            else
                        return f.name
+
                for _, ship in ipairs(f.ships) do
 +
                    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,060

edits

Navigation menu