• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 14: Line 14:  
_stat_1 = "%d",
 
_stat_1 = "%d",
 
_stat_2 = "%d (%d)",
 
_stat_2 = "%d (%d)",
 +
_normal_construction = "Normal",
 +
_large_ship_construction = "LSC",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
 
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
 
_slot_template = [[|- align=center style="background-color: whitesmoke; line-height: 1.1;"
Line 165: Line 167:  
if remodel_level then
 
if remodel_level then
 
return Formatting:format_remodel_level_and_cost(remodel_level, ship:remodel_cost(), ship:remodel_blueprint())
 
return Formatting:format_remodel_level_and_cost(remodel_level, ship:remodel_cost(), ship:remodel_blueprint())
elseif ship:buildable() then
  −
return Formatting:seconds_to_hms(ship:build_time() * 60)
   
else
 
else
return self._unbuildable
+
local buildable = ship:buildable()
 +
local buildable_lsc = ship:buildable_lsc()
 +
if buildable or buildable_lsc then
 +
local buildable_methods = {}
 +
if buildable then
 +
table.insert(buildable_methods, self._normal_construction)
 +
end
 +
if buildable_lsc then
 +
table.insert(buildable_methods, self._large_ship_construction)
 +
end
 +
return Formatting:format_stat_with_max(Formatting:seconds_to_hms(ship:build_time() * 60), table.concat(buildable_methods, ", "))
 +
else
 +
return self._unbuildable
 +
end
 
end
 
end
 
end
 
end
Anonymous user

Navigation menu