Line 94: |
Line 94: |
| local row1, row2, row3, row4 = {}, {}, {}, {} | | local row1, row2, row3, row4 = {}, {}, {}, {} |
| local ship_item1, ship_item2 | | local ship_item1, ship_item2 |
| + | local add_at_end |
| for index, item_key in ipairs(self._args) do | | for index, item_key in ipairs(self._args) do |
| local item | | local item |
Line 115: |
Line 116: |
| local split = mw.ustring.find(item_key, '=') | | local split = mw.ustring.find(item_key, '=') |
| self._route = mw.ustring.sub(item_key, split + 1) | | self._route = mw.ustring.sub(item_key, split + 1) |
− | self._route = item_key | + | add_at_end = mw.ustring.sub(item_key, split + 1) |
| else | | else |
| if mw.ustring.find(item_key, '/') then | | if mw.ustring.find(item_key, '/') then |
Line 190: |
Line 191: |
| end | | end |
| table.insert(self._items, "extra") | | table.insert(self._items, "extra") |
| + | table.insert(self._items, add_at_end) |
| end | | end |
| | | |
Line 214: |
Line 216: |
| function NanaminFleet:build_rows() | | function NanaminFleet:build_rows() |
| for index, row_values in ipairs(self._data_rows) do | | for index, row_values in ipairs(self._data_rows) do |
− | if row_values ~= "break" and row_values ~= "extra" then | + | if row_values ~= "break" and row_values ~= "extra" and not mw.ustring.find(row_values, '-') then |
| table.insert(self._rows, self._row_starter) | | table.insert(self._rows, self._row_starter) |
| if row_values == "header" then | | if row_values == "header" then |
Line 236: |
Line 238: |
| ) | | ) |
| end | | end |
− | elseif row_values == "extra" then
| + | elseif row_values == "extra" then |
| table.insert(self._rows, self._row_starter) | | table.insert(self._rows, self._row_starter) |
| table.insert(self._rows, format{self._calculated_cell_template, | | table.insert(self._rows, format{self._calculated_cell_template, |
Line 242: |
Line 244: |
| fighter_power = self._fighter_power | | fighter_power = self._fighter_power |
| }) | | }) |
| + | elseif mw.ustring.find(row_values, '-') then |
| table.insert(self._rows, self._row_starter) | | table.insert(self._rows, self._row_starter) |
| table.insert(self._rows, format{self._route_cell_template, | | table.insert(self._rows, format{self._route_cell_template, |
− | random_thing = "",
| + | route = row_values |
− | route = self._route | |
| }) | | }) |
| end | | end |