Changes
no edit summary
else
else
remodel_from = Ship(remodel_from)
remodel_from = Ship(remodel_from)
table.insert(build_info, self._remodel_from_label .. format{self._remodel_template, link = Formatting:format_link(remodel_from:link()), level = ship:remodel_level()})
local remodel_level = ship:remodel_level()
if ship:remodel_blueprint() then
remodel_level = table.concat({remodel_level, Formatting:format_blueprint_requirement_simple(ship:remodel_blueprint())}, " + ")
end
table.insert(build_info, self._remodel_from_label .. format{self._remodel_template, link = Formatting:format_link(remodel_from:link()), level = remodel_level})
end
end
if remodel_to then
if remodel_to then
remodel_to = Ship(remodel_to)
remodel_to = Ship(remodel_to)
table.insert(build_info, self._remodel_to_label .. format{self._remodel_template, link = Formatting:format_link(remodel_to:link()), level = remodel_to:remodel_level()})
local remodel_level = remodel_to:remodel_level()
if remodel_to:remodel_blueprint() then
remodel_level = table.concat({remodel_level, Formatting:format_blueprint_requirement_simple(remodel_to:remodel_blueprint())}, " + ")
end
table.insert(build_info, self._remodel_to_label .. format{self._remodel_template, link = Formatting:format_link(remodel_to:link()), level = remodel_level})
end
end
return {value = table.concat(build_info, "<br />"), text_align = self._start_align}
return {value = table.concat(build_info, "<br />"), text_align = self._start_align}