Changes

no edit summary
Line 26: Line 26:  
! 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 = {
Line 52: Line 52:  
_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",
Line 59: Line 59:  
_remodel_to_label = "Remodel To: ",
 
_remodel_to_label = "Remodel To: ",
 
_remodel_template = "${link} (Level ${level})",
 
_remodel_template = "${link} (Level ${level})",
 +
_unbuildable_label = "''Unbuildable''",
 
})
 
})
   Line 68: Line 69:  
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
   Line 85: Line 86:  
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
   Line 161: Line 162:  
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))
Line 172: Line 177:  
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
  
Anonymous user