Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:NanaminFleet
(view source)
Revision as of 06:25, 20 April 2015
309 bytes removed
,
9 years ago
m
no edit summary
Line 277:
Line 277:
table.insert(drops, battle_card)
table.insert(drops, battle_card)
−
local
index = 1
+
local content = "Notable Drops<br />"
−
local content
+
for i in
1
, #
drops
do
−
while drops[index] do
+
content = content
.. drops[
i
] .. " "
−
if index == 1 then
+
if i % 4 == 0 then
content =
content ..
"<br />" end
−
content = "Notable Drops<br />"
.. (drops[
1
] or "") .. " " .. (
drops
[2] or "") .. " "
..
(
drops[
3
]
or "")
.. " "
.. (drops[4] or "")
−
else
−
content = "<br />"
.. (drops[index] or "") .. " " .. (drops[index + 1] or "") .. " " .. (drops[index + 2] or "") .. " " .. (drops[index + 3] or "")
−
end
−
table.insert(self._rows, format{self._added_cell_template,
−
content = content,
−
bg_color = self._extra_cells_bg,
−
})
−
index = index + 4
end
end
+
table.insert(self._rows, format{self._added_cell_template,
+
content = content,
+
bg_color = self._extra_cells_bg,
+
})
end
end
end
end
return NanaminFleet
return NanaminFleet
Nanamin
48
edits