Changes
no edit summary
_stat_1 = "%d",
_stat_1 = "%d",
_stat_2 = "%d (%d)",
_stat_2 = "%d (%d)",
_slot_template = [[|-
_slot_template = [[|-
| align=center colspan="3" | ${equipment}
| align=center colspan="3" | ${icon} ${equipment}
| align=center | ${space}
| align=center | ${space}
]],
]],
local slots = {}
local slots = {}
for i = 1, math.max(4, ship:slots()) do
for i = 1, math.max(4, ship:slots()) do
table.insert(slots, format(self._slot_template, {equipment = ship:equipment(i), space = ship:space(i)}))
table.insert(slots, format(self._slot_template, {icon = ship:equipment_icon(i), equipment = ship:equipment(i), space = ship:space(i)}))
end
end
return table.concat(slots)
return table.concat(slots)