Changes

no edit summary
Line 39: Line 39:  
 
 
'Chougei', 'Conte di Cavour', 'Victorious', 'Kaiboukan No.30',
 
'Chougei', 'Conte di Cavour', 'Victorious', 'Kaiboukan No.30',
 +
 +
'Shounan', 'Scamp',
 +
 +
'Yawata Maru',
 +
 +
'Ume', 'Yamashio Maru', 'Fuyutsuki', 'Tamanami',
 +
 +
'Hayashio', 'I-201', 'Maryland', 'Kurahashi',
 +
 +
'Ukuru', 'Natsugumo', 'Langley', 'Brooklyn', 'Massachusetts', 'Ranger', 'Jean Bart',
 +
 +
'Yuugure', 'Heywood L. Edwards', 'Kumano Maru', 'Noumi', 'Tuscaloosa', 'No.101 Transport Ship',
 +
 +
'Kaiboukan No.22', 'Inagi', 'Shirakumo', 'Salmon', 'Asahi', 'C.Cappellini', 'Javelin', 'Nevada', 'Rodney',
 +
 +
'Drum', 'I-41', 'I-36', 'Heian Maru',
 +
 +
'Mogador', 'Valiant', 'Gloire', 'Phoenix', 'Lexington',
 +
 +
'Ootomari', 'Wahoo', 'Kaya', 'Kirov', 'Sugi', 'Shimane Maru', 'Minneapolis',
 +
 +
'Norge', 'Eidsvold', 'Glorious', 'Nankai', 'Nosaki', 'Kashi', 'Dace', 'Leonardo da Vinci', 'Wasp',
 
}
 
}
   Line 68: Line 90:  
['Hard']    = 'Hard+',
 
['Hard']    = 'Hard+',
 
['?']      = '?',
 
['?']      = '?',
['Regular'] = '',
+
['Regular'] = '✔️',
 
}
 
}
   Line 84: Line 106:  
local table_format = {
 
local table_format = {
 
-- header          = '{| class="article-table sortable center ${classes}" width="100%" style="text-align:center; line-height:15px;"\n!Type\n!<span style="border-bottom:1px dotted;">Ship<sup>[[Template:DropList/doc|?]]</sup></span>\n',
 
-- header          = '{| class="article-table sortable center ${classes}" width="100%" style="text-align:center; line-height:15px;"\n!Type\n!<span style="border-bottom:1px dotted;">Ship<sup>[[Template:DropList/doc|?]]</sup></span>\n',
     header          = '{|class="wikitable mw-collapsible mw-collapsed" width="50%" style="text-align:center"\n!colspan="100"|Ship drops\n|-\n!Type\n!Ship\n',
+
     header          = '{|class="wikitable mw-collapsible mw-collapsed" width="50%" style="text-align:center"\n!colspan="100"|Ship drops\n|-\n!Type\n!Ship<sup>[[Module:DropList|?]]</sup>\n',
 
header_node      = '!${node}\n',
 
header_node      = '!${node}\n',
 
header_boss_node = '!style="background-color:#FFCDD2;color:red"|\'\'\'${node}\'\'\'\n',
 
header_boss_node = '!style="background-color:#FFCDD2;color:red"|\'\'\'${node}\'\'\'\n',
Line 131: Line 153:     
function log(message, value)
 
function log(message, value)
tbl.debug = tbl.debug .. string.format('%s: %s\n', message, value)
+
-- tbl.debug = tbl.debug .. string.format('%s: %s\n', message, value)
 
end
 
end
   Line 266: Line 288:  
function showTable(tbl)
 
function showTable(tbl)
   −
local res = format{table_format.header, classes = tbl.classes or ''}
+
local res = { format{table_format.header, classes = tbl.classes or ''} }
    
function add(str)
 
function add(str)
res = res .. str
+
table.insert(res, str)
 
end
 
end
   Line 329: Line 351:  
end
 
end
   −
return res
+
return table.concat(res, '')
    
end
 
end
7,212

edits