• 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
m
no edit summary
Line 94: Line 94:  
     local row1, row2, row3, row4 = {}, {}, {}, {}
 
     local row1, row2, row3, row4 = {}, {}, {}, {}
 
     local ship_item1, ship_item2
 
     local ship_item1, ship_item2
    local add_at_end
   
     for index, item_key in ipairs(self._args) do
 
     for index, item_key in ipairs(self._args) do
 
         local item
 
         local item
Line 116: Line 115:  
             local split = mw.ustring.find(item_key, '=')
 
             local split = mw.ustring.find(item_key, '=')
 
             self._route = mw.ustring.sub(item_key, split + 1)
 
             self._route = mw.ustring.sub(item_key, split + 1)
            add_at_end = mw.ustring.sub(item_key, split + 1)
   
         else
 
         else
 
             if mw.ustring.find(item_key, '/') then
 
             if mw.ustring.find(item_key, '/') then
Line 191: Line 189:  
     end
 
     end
 
     table.insert(self._items, "extra")
 
     table.insert(self._items, "extra")
    table.insert(self._items, add_at_end)
   
end
 
end
   Line 216: Line 213:  
function NanaminFleet:build_rows()
 
function NanaminFleet:build_rows()
 
for index, row_values in ipairs(self._data_rows) do
 
for index, row_values in ipairs(self._data_rows) do
if row_values ~= "break" and row_values ~= "extra" and not mw.ustring.find(row_values, '-') then
+
if row_values ~= "break" and row_values ~= "extra" then
 
table.insert(self._rows, self._row_starter)
 
table.insert(self._rows, self._row_starter)
 
if row_values == "header" then
 
if row_values == "header" then
Line 244: Line 241:  
                 fighter_power = self._fighter_power
 
                 fighter_power = self._fighter_power
 
             })
 
             })
        elseif mw.ustring.find(row_values, '-') then
   
             table.insert(self._rows, self._row_starter)
 
             table.insert(self._rows, self._row_starter)
             table.insert(self._rows, format{self._route_cell_template,
+
             table.insert(self._rows, format(self._route_cell_template, {route = self._route}))
                route = row_values
  −
            })
   
end
 
end
 
end
 
end
48

edits

Navigation menu