Line 98: |
Line 98: |
| local complete = true | | local complete = true |
| | | |
− | function insertRow(result, remodel, args, line, count, use_suffix) | + | function insertRow(result, remodel, args, line, count, use_suffix, old) |
| | | |
| local ship = args.ship | | local ship = args.ship |
Line 104: |
Line 104: |
| | | |
| local remodel_string = remodel and "/" .. remodel or "" | | local remodel_string = remodel and "/" .. remodel or "" |
| + | if old then |
| + | remodel_string = remodel_string .. "/Old" |
| + | end |
| | | |
| local ja, en, note = args[line.name .. remodel_string], args[line.name .. remodel_string .. "/En"], args[line.name .. remodel_string .. "/Note"] | | local ja, en, note = args[line.name .. remodel_string], args[line.name .. remodel_string .. "/En"], args[line.name .. remodel_string .. "/Note"] |
Line 172: |
Line 175: |
| table.insert(result, format{templates.header, note_style = args.explicit.note_style or ""}) | | table.insert(result, format{templates.header, note_style = args.explicit.note_style or ""}) |
| for _, line in pairs(lines) do | | for _, line in pairs(lines) do |
| + | |
| local added = insertRow(result, nil, args.explicit, line, 0) | | local added = insertRow(result, nil, args.explicit, line, 0) |
| added = added + insertRow(result, "Kai", args.explicit, line, added) | | added = added + insertRow(result, "Kai", args.explicit, line, added) |
Line 181: |
Line 185: |
| added = added + insertRow(result, "Carrier Kai Ni", args.explicit, line, added) | | added = added + insertRow(result, "Carrier Kai Ni", args.explicit, line, added) |
| added = added + insertRow(result, "Due", args.explicit, line, added) | | added = added + insertRow(result, "Due", args.explicit, line, added) |
| + | |
| + | added = added + insertRow(result, "Old", args.explicit, line, added, false, true) |
| + | |
| added = added + insertRow(result, "Taiyou", args.explicit, line, added, true) | | added = added + insertRow(result, "Taiyou", args.explicit, line, added, true) |
| added = added + insertRow(result, "Taiyou Kai", args.explicit, line, added, true) | | added = added + insertRow(result, "Taiyou Kai", args.explicit, line, added, true) |
Line 191: |
Line 198: |
| added = added + insertRow(result, "Ryuuhou", args.explicit, line, added, true) | | added = added + insertRow(result, "Ryuuhou", args.explicit, line, added, true) |
| added = added + insertRow(result, "Ryuuhou Kai", args.explicit, line, added, true) | | added = added + insertRow(result, "Ryuuhou Kai", args.explicit, line, added, true) |
| + | |
| if line.note and added > 0 then | | if line.note and added > 0 then |
| table.insert(result, format{templates.note, note = line.note}) | | table.insert(result, format{templates.note, note = line.note}) |