• 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
Add remodel cost display
Line 23: Line 23:  
_stat_1 = "%d",
 
_stat_1 = "%d",
 
_stat_2 = "%d (%d)",
 
_stat_2 = "%d (%d)",
 +
_blueprint = " [[Blueprint.png|36px]]",
 
_slot_template = [[|-
 
_slot_template = [[|-
 
| align=center colspan="3" | ${equipment}
 
| align=center colspan="3" | ${equipment}
Line 151: Line 152:     
function ShipInfoKai:build_remodel_info(ship)
 
function ShipInfoKai:build_remodel_info(ship)
return ship:remodeled() and ship:remodel_level() or ship:buildable() and ship:build_time() or self._unbuildable
+
if ship:remodeled() then
 +
return mw.uwstring.format("%s, %s %s", ship:remodel_level(), ship:remodel_cost(), ship:remodel_blueprint())
 +
elseif ship:buildable() then
 +
return ship:build_time()
 +
else
 +
return self._unbuildable
 +
end
 
end
 
end
  
Anonymous user

Navigation menu