Line 65: |
Line 65: |
| !S]=], | | !S]=], |
| | | |
− | _row = [=[|- | + | _row_start = [=[ |
− | | style="text-align:left;" rowspan="${rowspan}" id="${name}" | ${link} | + | | style="text-align:left;" rowspan="${rowspan}" id="${id}" | ${link}]=], |
| + | |
| + | _row = [=[|-${row_start} |
| | 0 | | | 0 |
| | nowrap | ${devmats0}/${devmats0_x} | | | nowrap | ${devmats0}/${devmats0_x} |
Line 228: |
Line 230: |
| local products = equipment:improvement_products() | | local products = equipment:improvement_products() |
| local resources = equipment:improvement_resources() | | local resources = equipment:improvement_resources() |
| + | local first = true |
| for _, product in ipairs(products) do | | for _, product in ipairs(products) do |
| local resources0 = equipment:improvement_resources(false, product, 0) | | local resources0 = equipment:improvement_resources(false, product, 0) |
Line 238: |
Line 241: |
| table.insert(self.rows, format{ | | table.insert(self.rows, format{ |
| self._row, | | self._row, |
− | rowspan = math.max(4, 4 * #products), | + | row_start = not first and "" or format{ |
− | id = equipment:link(),
| + | self._row_start, |
− | link = format_equipment_link(equipment),
| + | rowspan = math.max(4, 4 * #products), |
| + | id = equipment:link(), |
| + | link = format_equipment_link(equipment), |
| + | }, |
| fuel = resources.fuel or 0, | | fuel = resources.fuel or 0, |
| ammo = resources.ammo or 0, | | ammo = resources.ammo or 0, |
Line 267: |
Line 273: |
| days = days, | | days = days, |
| }) | | }) |
| + | first = false |
| end | | end |
| end | | end |