• 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 221: Line 221:  
end
 
end
   −
function format_products(product_names)
+
function format_products(product_key)
     return #product_names == 1 and format_equipment_link(Equipment(product_names[1])) or #product_names > 1 and "Unimplemented" or "None"
+
     return product_key == false and "-" or format_equipment_link(Equipment(product_key))
 
end
 
end
   Line 231: Line 231:  
         local resources = equipment:improvement_resources()
 
         local resources = equipment:improvement_resources()
 
         local first = true
 
         local first = true
         for _, product in ipairs(products) do
+
         for product_key, product in ipairs(products) do
 
             local resources0 = equipment:improvement_resources(false, product, 0)
 
             local resources0 = equipment:improvement_resources(false, product, 0)
 
             local resources0_x = equipment:improvement_resources(true, product, 0)
 
             local resources0_x = equipment:improvement_resources(true, product, 0)
Line 269: Line 269:  
                 equips6_bg = format_equipment_bg(equipment, resources6),
 
                 equips6_bg = format_equipment_bg(equipment, resources6),
 
                 equips10_bg = format_equipment_bg(equipment, resources10),
 
                 equips10_bg = format_equipment_bg(equipment, resources10),
                 upgrades = format_products(products),
+
                 upgrades = format_product(product_key),
 
                 ships = ships,
 
                 ships = ships,
 
                 days = days,
 
                 days = days,
cssedit, gkautomate
7,064

edits

Navigation menu