Changes

m
no edit summary
Line 104: Line 104:  
function parseArgs(args)
 
function parseArgs(args)
 
      
 
      
     local ignore_common = args.ignore_common or true
+
     local ignore_common = args.ignore_common
    
local tbl = { nodes = {}, rows = {}, debug = '', classes = args.classes }
 
local tbl = { nodes = {}, rows = {}, debug = '', classes = args.classes }
Line 163: Line 163:  
if ship and nodes then
 
if ship and nodes then
 
local ship_table = Ship:get_table(ship, '')
 
local ship_table = Ship:get_table(ship, '')
if (ship_table and ship_table._type) or ignore_common == false then
+
if (ship_table and ship_table._type) then
 
local ignored, rare = find(ignored_ships, ship), find(rare_ships, ship)
 
local ignored, rare = find(ignored_ships, ship), find(rare_ships, ship)
 +
if not ignore_common then
 +
    ignored = false
 +
end
 +
 
if find(tbl.rows, ship, 'ship') then
 
if find(tbl.rows, ship, 'ship') then
 
log('ship duplicate', ship)
 
log('ship duplicate', ship)
elseif not regular and ignored and ignore_common then
+
elseif not regular and ignored then
 
log('ship ignored', ship)
 
log('ship ignored', ship)
 
else
 
else
cssedit, prechecked
1,656

edits