• 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
no edit summary
Line 183: Line 183:  
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
local left = item
+
if type(item) == "string" then
local right = item:remodel_to()
+
if even then
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
   
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
Anonymous user

Navigation menu