- 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
Line 183:
Line 183:
+
+
+
− local left = item +
− local right = item:remodel_to()+
− if right then
− right = Ship(right)
− end
− table.insert(items, {left, right})
− if right then
− left = right:remodel_to()
− while left do
− left = Ship(left)
− right = left:remodel_to()
− if right then
− right = Ship(right)
− else
− table.insert(items, {false, left})
− break
− end
− +
+
+
+
+
+
+
+
+
+
+
no edit summary
function BaseTable:create_items_post()
function BaseTable:create_items_post()
local items = {}
local items = {}
local left = false
local right = false
local even = false
for _, item in ipairs(self._items) do
for _, item in ipairs(self._items) do
if type(item) == "string" then
if even then
table.insert(items, {left, right})
table.insert(items, {left, right})
left = right:remodel_to()
left = false
even = false
end
end
elseif even then
right = item
table.insert(items, {left, right})
left = false
right = false
even = false
else
left = item
even = true
end
end
end
end