• 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 325: Line 325:     
function ShipInfoKai:build_remodel_header()
 
function ShipInfoKai:build_remodel_header()
self._vars.build_remodel_header = self._ship:remodel_level() and self._remodel_level or self._build_time
+
self._vars.build_remodel_header = self._ship:remodel_from() and self._remodel_level or self._build_time
 
end
 
end
    
function ShipInfoKai:build_remodel_info()
 
function ShipInfoKai:build_remodel_info()
local remodel_level = self._ship:remodel_level()
+
local remodel_from = self._ship:remodel_from()
if remodel_level or self._ship:remodel_from() then
+
if remodel_from then
self._vars.build_remodel_info =  Formatting:format_remodel_level_and_item_cost(remodel_level, self._ship:remodel_blueprint(), self._ship:remodel_catapult())
+
self._vars.build_remodel_info =  Formatting:format_remodel_level_and_item_cost(self._ship:remodel_level(), self._ship:remodel_blueprint(), self._ship:remodel_catapult())
 
else
 
else
 
local buildable = self._ship:buildable()
 
local buildable = self._ship:buildable()
Line 350: Line 350:  
end
 
end
   −
local remodel_cost = self._ship:remodel_cost()
+
if remodel_from then
if remodel_cost then
+
self._vars.remodel_cost = format{self._remodel_cost_template, remodel_cost = Formatting:format_resources(self._ship:remodel_cost())}
self._vars.remodel_cost = format{self._remodel_cost_template, remodel_cost = Formatting:format_resources(remodel_cost)}
   
else
 
else
 
self._vars.remodel_cost = ""
 
self._vars.remodel_cost = ""
 
end
 
end
   −
if self._ship:remodel_from() == self._ship:remodel_to() then
+
if remodel_from == self._ship:remodel_to() then
 
self._vars.reversion_cost = format{self._reversion_cost_template,  
 
self._vars.reversion_cost = format{self._reversion_cost_template,  
 
suffix = Ship(self._ship:remodel_to()):display_suffix(),  
 
suffix = Ship(self._ship:remodel_to()):display_suffix(),  
Anonymous user

Navigation menu