• 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
fix displaying for unknown diff.
Line 3: Line 3:     
function trim(str)
 
function trim(str)
return str:match("^%s*(.-)%s*$")
+
return str:match('^%s*(.-)%s*$')
 
end
 
end
   Line 14: Line 14:     
local colors = {
 
local colors = {
["Easy"]  = "5a5",
+
['Easy']  = '5a5',
["Medium"] = "da6",
+
['Medium'] = 'da6',
["Hard"]  = "d33"
+
['Hard']  = 'd33'
 
}
 
}
   Line 49: Line 49:  
-- TODO: check node/difficulty existence?
 
-- TODO: check node/difficulty existence?
 
if diff and colors[diff] then
 
if diff and colors[diff] then
row.nodes[node] = { color = colors[diff], diff = diff }
+
row.nodes[node] = { color = colors[diff], diff = diff .. '+' }
 
else
 
else
row.nodes[node] = { color = "fff", diff = diff }
+
row.nodes[node] = { color = "0ff", diff = '?' }
 
end
 
end
 
end
 
end
Line 66: Line 66:  
header_boss_node = '!width="10%%" style="background-color:pink;color:red;"|\'\'\'%s\'\'\'\n',
 
header_boss_node = '!width="10%%" style="background-color:pink;color:red;"|\'\'\'%s\'\'\'\n',
 
ship_cell        = '|-\n|[[%s]]\n',
 
ship_cell        = '|-\n|[[%s]]\n',
node_cell        = '|style="background-color:#%s;"|%s+\n',
+
node_cell        = '|style="background-color:#%s;"|%s\n',
 
empty_cell      = '|\n',
 
empty_cell      = '|\n',
 
footer          = '|}\n'
 
footer          = '|}\n'
cssedit, gkautomate
7,064

edits

Navigation menu