Changes

no edit summary
Line 136: Line 136:  
             table.insert(result, fleetNote)
 
             table.insert(result, fleetNote)
 
             table.insert(result, tableHeaderFriend)
 
             table.insert(result, tableHeaderFriend)
             local has5thSlot = U.ifindBy(fleet.fleet, function(ship) return ship.equipment[5] end)
+
             local maxSlots = U.imax(U.imap(fleet.fleet, function(ship) return #ship.equipment end))
             local cardSize = has5thSlot and '70px' or '100px'
+
             local cardSize = maxSlots == 5 and '60px' or maxSlots == 4 and '80px' or '100px'
 
             for j, ship in ipairs(fleet.fleet) do
 
             for j, ship in ipairs(fleet.fleet) do
 
                 table.insert(result, string.format(
 
                 table.insert(result, string.format(
cssedit, gkautomate
7,064

edits