• 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 110: Line 110:     
function Ship:get_module(name, isEnemy)
 
function Ship:get_module(name, isEnemy)
   if name == nil then
+
   if not name then
 
     return nil
 
     return nil
  else
  −
    name = self:process_ship_key(name)
  −
  end
  −
  if name:sub(1, 5) == 'Vita:' and isEnemy then
  −
    return string.format('Module:Data/Enemy/%s', name)
  −
  else
  −
    return string.format('Module:%s', name)
   
   end
 
   end
 +
  name = self:process_ship_key(name)
 +
  return string.format('Module:Data/%s/%s', isEnemy and 'Enemy' or 'Ship', name)
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu