Line 29: |
Line 29: |
| | style="text-align:center;" |${exp} | | | style="text-align:center;" |${exp} |
| | style="text-align:center;" |${hq}]], | | | style="text-align:center;" |${hq}]], |
| + | |
| + | empty_node_row = [[|- |
| + | | colspan="7" style="text-align:center;" |Must be my imagination (battle avoided)/No enemies sighted<br />気のせいだった(戦闘回避)/敵影を見ず。(戦闘なし)]], |
| | | |
| } | | } |
Line 44: |
Line 47: |
| table.insert(rows, format{ | | table.insert(rows, format{ |
| templates.node_title_row, | | templates.node_title_row, |
− | node_label = node_data.label, | + | node_label = node_data.label or "?", |
− | node_name = node_data.name, | + | node_name = node_data.name or "?", |
| type = type_style and type_style.type or "", | | type = type_style and type_style.type or "", |
| }) | | }) |
| + | if node_data.type == "empty" then |
| + | table.insert(rows, templates.empty_node_row) |
| + | else |
| for i, pattern_data in ipairs(node_data.patterns) do | | for i, pattern_data in ipairs(node_data.patterns) do |
| local formations_string = table.concat(pattern_data.formations, "<br />") | | local formations_string = table.concat(pattern_data.formations, "<br />") |
Line 81: |
Line 87: |
| table.insert(rows, format{ | | table.insert(rows, format{ |
| templates.node_pattern_row, | | templates.node_pattern_row, |
− | node_label = node_data.label, | + | node_label = node_data.label or "?", |
| pattern_id = i, | | pattern_id = i, |
| formations_string = formations_string, | | formations_string = formations_string, |
Line 90: |
Line 96: |
| background_color = type_style and type_style.background_color or "", | | background_color = type_style and type_style.background_color or "", |
| }) | | }) |
| + | end |
| end | | end |
| end | | end |