Changes
no edit summary
! style="width: 30px; text-align: center; vertixal-align: middle; background-color: forestgreen;" | ${fuel}
! style="width: 30px; text-align: center; vertixal-align: middle; background-color: forestgreen;" | ${fuel}
! style="width: 30px; text-align: center; vertical-align: middle; background-color: darkgoldenrod;" | ${ammo}
! style="width: 30px; text-align: center; vertical-align: middle; background-color: darkgoldenrod;" | ${ammo}
! style="width: 30px; text-align: center; vertical-align: middle;" | Build / Remodel Info
! style="width: 200px; text-align: center; vertical-align: middle;" | Build / Remodel Info
! style="text-align:left;" | Notes]],
! style="text-align:left;" | Notes]],
_columns = {
_columns = {
_empty_cell = [[| colspan="1" rowspan="1" |]],
_empty_cell = [[| colspan="1" rowspan="1" |]],
_item_class = Ship,
_item_class = Ship,
_class_number_template = "${class_name}<br />${class_number}",
_class_number_template = "${class_name}<br />#${class_number}",
_normal_construction = "Normal",
_normal_construction = "Normal",
_large_ship_construction = "LSC",
_large_ship_construction = "LSC",
_remodel_to_label = "Remodel To: ",
_remodel_to_label = "Remodel To: ",
_remodel_template = "${link} (Level ${level})",
_remodel_template = "${link} (Level ${level})",
_unbuildable_label = "''Unbuildable''",
})
})
table.insert(value, Formatting:format_stat(ship:japanese_name()))
table.insert(value, Formatting:format_stat(ship:japanese_name()))
end
end
return {values = {value = table.concat(value, "<br />")}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = table.concat(value, "<br />")}, bg_color = self._transparent, text_align = self._start_align}
end
end
class_number = "??"
class_number = "??"
end
end
return {values = {value = class_number and format{self._class_number_template, class_name = class_name, class_number = class_number} or class_name}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = class_number and format{self._class_number_template, class_name = class_name, class_number = class_number} or class_name}, bg_color = self._transparent, text_align = self._start_align}
end
end
function ShipListKai:type(ship)
function ShipListKai:type(ship)
return {values = {value = Formatting:format_ship_type(ship:type())}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = Formatting:format_ship_code(ship:type())}, bg_color = self._transparent, text_align = self._start_align}
end
end
table.insert(buildable_methods, self._large_ship_construction)
table.insert(buildable_methods, self._large_ship_construction)
end
end
table.insert(build_info, self._build_label .. table.concat(buildable_methods, ", "))
if #buildable_methods == 0 then
table.insert(build_info, self._unbuildable_label)
else
table.insert(build_info, self._build_label .. table.concat(buildable_methods, ", "))
end
else
else
remodel_from = Ship(self:process_item_key(remodel_from))
remodel_from = Ship(self:process_item_key(remodel_from))
table.insert(build_info, self._remodel_to_label .. format{self._remodel_template, link = Formatting:format_link(remodel_to:link()), level = remodel_to:remodel_level()})
table.insert(build_info, self._remodel_to_label .. format{self._remodel_template, link = Formatting:format_link(remodel_to:link()), level = remodel_to:remodel_level()})
end
end
return {values = {value = table.concat(build_info, "<br />")}, bg_color = self._transparent, text_align = self._center_align}
return {values = {value = table.concat(build_info, "<br />")}, bg_color = self._transparent, text_align = self._start_align}
end
end