Changes

m
Reverted edits by Tsubakura (talk) to last version by がか
Line 39: Line 39:  
['Hard']    = 'FFCDD2',
 
['Hard']    = 'FFCDD2',
 
['?']      = 'BBDEFB',
 
['?']      = 'BBDEFB',
['Regular'] = 'C8E6C9', -- (default color)
+
['Regular'] = '', -- (default color)
 
}
 
}
   Line 103: Line 103:     
function parseArgs(args)
 
function parseArgs(args)
   
  −
    local ignore_common = false
      
local tbl = { nodes = {}, rows = {}, debug = '', classes = args.classes }
 
local tbl = { nodes = {}, rows = {}, debug = '', classes = args.classes }
Line 163: Line 161:  
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) 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 then
 
elseif not regular and ignored then
log('ship ignored test', ship)
+
log('ship ignored', ship)
 
else
 
else
 
table.insert(tbl.rows, {
 
table.insert(tbl.rows, {
cssedit, gkautomate
7,064

edits