Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:CombinedFleet
(view source)
Revision as of 02:13, 29 April 2015
301 bytes added
,
9 years ago
m
no edit summary
Line 126:
Line 126:
local ship_list = self._ship_list[table_name]
local ship_list = self._ship_list[table_name]
for i = 1, 6, 3 do
for i = 1, 6, 3 do
+
local ship_suffix1 = ship_list[i][2] and ship_list[i][2]:gsub('/', '') or ship_list[i][2]
+
local ship_suffix2 = ship_list[i + 1][2] and ship_list[i + 1][2]:gsub('/', '') or ship_list[i + 1][2]
+
local ship_suffix3 = ship_list[i + 2][2] and ship_list[i + 2][2]:gsub('/', '') or ship_list[i + 2][2]
local ships = {
local ships = {
−
ship1 = Ship(ship_list[i][1],
ship_list[i][2]
),
+
ship1 = Ship(ship_list[i][1],
ship_suffix1
),
−
ship2 = Ship(ship_list[i + 1][1],
ship_list[i + 1][2]
),
+
ship2 = Ship(ship_list[i + 1][1],
ship_suffix2
),
−
ship3 = Ship(ship_list[i + 2][1],
ship_list[i + 2][2]
),
+
ship3 = Ship(ship_list[i + 2][1],
ship_suffix3
),
}
}
Nanamin
48
edits