- 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
Line 332:
Line 332:
+
Line 348:
Line 349:
− end
−
− if remodel_from then
− self._vars.remodel_cost = format{self._remodel_cost_template, remodel_cost = Formatting:format_resources(self._ship:remodel_cost())}
− else
Line 358:
Line 354:
− +
Fix ${suffix} being displayed when not enough information available
if remodel_from then
if remodel_from then
self._vars.build_remodel_info = Formatting:format_remodel_level_and_item_cost(self._ship: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())
self._vars.remodel_cost = format{self._remodel_cost_template, remodel_cost = Formatting:format_resources(self._ship:remodel_cost())}
else
else
local buildable = self._ship:buildable()
local buildable = self._ship:buildable()
self._vars.build_remodel_info = build_time and Formatting:tooltip(self._unbuildable, Formatting:seconds_to_hms(build_time * 60)) or self._unbuildable
self._vars.build_remodel_info = build_time and Formatting:tooltip(self._unbuildable, Formatting:seconds_to_hms(build_time * 60)) or self._unbuildable
end
end
self._vars.remodel_cost = ""
self._vars.remodel_cost = ""
end
end
if 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 = Formatting:format_stat(Ship(self._ship:remodel_to()):display_suffix()),
level_items = Formatting:format_remodel_level_and_item_cost(self._ship:remodel_to_level(), self._ship:remodel_to_blueprint(), self._ship:remodel_to_catapult()),
level_items = Formatting:format_remodel_level_and_item_cost(self._ship:remodel_to_level(), self._ship:remodel_to_blueprint(), self._ship:remodel_to_catapult()),
resources = Formatting:format_resources(self._ship:remodel_to_cost())
resources = Formatting:format_resources(self._ship:remodel_to_cost())