• 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 56: Line 56:     
function Ship:get_table(name, model)
 
function Ship:get_table(name, model)
   local success, ship_table = U.requireModule(name)
+
   local success, ship_table = Ship.requireModule(name)
  if not success then
  −
    success, ship_table = U.requireModule('Data/Ship/' .. name)
  −
  end
   
   local ship_form_table
 
   local ship_form_table
 
   if success then
 
   if success then
Line 110: Line 107:  
   end
 
   end
 
   return mw.ustring.format('Module:%s', name)
 
   return mw.ustring.format('Module:%s', name)
 +
end
 +
 +
function Ship.requireModule(name)
 +
  local success, ship_table = U.requireModule(name)
 +
  if not success then
 +
    success, ship_table = U.requireModule('Data/Ship/' .. name)
 +
  end
 +
  return success, ship_table
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu