• 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
m
no edit summary
Line 187: Line 187:  
end
 
end
   −
function ship_cgs(ship_name, j)
+
function ship_cgs(ship_name, ship_suffix, j)
 
     j = j or 1
 
     j = j or 1
     local forms = { { name = ship_name, normal = true, damaged = true } }
+
    ship_suffix = ship_suffix or ""
 +
     local forms = { { name = ship_name .. '/' .. ship_suffix, normal = true, damaged = true } }
 
     local success, ship_data = Utils.requireModule(ship_name)
 
     local success, ship_data = Utils.requireModule(ship_name)
 
     if not success then
 
     if not success then
 
         return forms
 
         return forms
 
     end
 
     end
     local form_data = ship_data[""]
+
     local form_data = ship_data[ship_suffix]
 
     local seasonal_forms = {}
 
     local seasonal_forms = {}
 
     for suffix, data in pairs(ship_data) do
 
     for suffix, data in pairs(ship_data) do
Line 207: Line 208:  
         local ship_name_next, ship_suffix_next = Ship:process_ship_key(form_data._remodel_to)
 
         local ship_name_next, ship_suffix_next = Ship:process_ship_key(form_data._remodel_to)
 
         if ship_name_next ~= ship_name then
 
         if ship_name_next ~= ship_name then
             return Utils.concat(forms, Utils.concat(seasonal_forms, ship_cgs(ship_name_next, j + 1)))
+
             return Utils.concat(forms, Utils.concat(seasonal_forms, ship_cgs(ship_name_next, ship_suffix_next, j + 1)))
 
         else
 
         else
 
             local name = form_data._remodel_to
 
             local name = form_data._remodel_to
cssedit, gkautomate
7,064

edits

Navigation menu