Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:Fleet
(view source)
Revision as of 08:02, 14 June 2019
32 bytes added
,
5 years ago
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