• 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 74: Line 74:  
     row = {row[3], row[4]}
 
     row = {row[3], row[4]}
 
     return self:equips(row)
 
     return self:equips(row)
 +
end
 +
 +
function NanaminFleet:process_hq_lvl(item_key)
 +
    local split = mw.ustring.find(item_key, '=')
 +
    local value = mw.ustring.sub(item_key, split + 1)
 +
    return tonumber(value)
 
end
 
end
   Line 104: Line 110:  
             item = false
 
             item = false
 
              
 
              
            local split = mw.ustring.find(item_key, '=')
+
             self._hq_lvl = self:process_hq_lvl(item_key)
             self._hq_lvl = tonumber(mw.ustring.sub(self._args[index], split + 1))
   
              
 
              
 
             --Get bracket of 5
 
             --Get bracket of 5
Line 242: Line 247:  
             })
 
             })
 
             table.insert(self._rows, self._row_starter)
 
             table.insert(self._rows, self._row_starter)
             table.insert(self._rows, format(self._route_cell_template, {route = self._route}))
+
             table.insert(self._rows, format{self._route_cell_template,
 +
                route = self._route
 +
            })
 
end
 
end
 
end
 
end
48

edits

Navigation menu