• 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 623: Line 623:  
             if i ~= nil then
 
             if i ~= nil then
 
                 count = count + 1
 
                 count = count + 1
                 if count % 3 == 0 and str ~= nil then
+
                 if (count == 3 or count == 9) and str ~= nil then
                 if count == 6 then -- >6 ships --> combined fleet
+
                 str = str:sub(0,i) .. "<br>" .. str:sub(i+1,#str)
                str = "<center><b>Main Fleet</b></center>" .. str:sub(0,i) .. "<br><center><b>Escort Fleet</b></center>" .. str:sub(i+1,#str)
+
            end
            else
+
            if count == 6 and str ~= nil then -- >6 ships --> combined fleet
            str = str:sub(0,i) .. "<br>" .. str:sub(i+1,#str)
+
            str = "<center><b>Main Fleet</b></center>" .. str:sub(0,i) .. "<br><center><b>Escort Fleet</b></center>" .. str:sub(i+1,#str)
        end
+
        end
                end
   
             end
 
             end
 
         end
 
         end
5,421

edits

Navigation menu