• 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 16: Line 16:  
     j = j or 1
 
     j = j or 1
 
     ship_suffix = ship_suffix or ""
 
     ship_suffix = ship_suffix or ""
     local form = ship_name .. "/" .. ship_suffix
+
     local forms = { ship_name .. "/" .. ship_suffix }
    local forms = { form }
   
     local success, ship_data = Utils.requireModule(ship_name)
 
     local success, ship_data = Utils.requireModule(ship_name)
 
     if not success then
 
     if not success then
Line 25: Line 24:  
     local i = 0
 
     local i = 0
 
     while form_data and form_data._remodel_to and not Utils.find(forms, form_data._remodel_to) and i < 10 and j <= 3 do
 
     while form_data and form_data._remodel_to and not Utils.find(forms, form_data._remodel_to) and i < 10 and j <= 3 do
        if form_data._remodel_to_level then
  −
            reversible_forms[form] = true
  −
        end
   
         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, ship_remodel_forms(ship_name_next, ship_suffix_next, j + 1))
 
             return Utils.concat(forms, ship_remodel_forms(ship_name_next, ship_suffix_next, j + 1))
 
         else
 
         else
            form = form_data._remodel_to
+
             table.insert(forms, form_data._remodel_to)
             table.insert(forms, form)
   
             form_data = ship_data[ship_suffix_next]
 
             form_data = ship_data[ship_suffix_next]
 +
            if form_data._remodel_to_level then
 +
                reversible_forms[form_data._remodel_to] = true
 +
            end
 
         end
 
         end
 
         i = i + 1
 
         i = i + 1
cssedit, gkautomate
7,060

edits

Navigation menu