- 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 178:
Line 178:
− +
− local remodel_level = remodel_to:remodel_level()+
− if remodel_to:remodel_blueprint() or remodel_to:remodel_catapult() then+
− remodel_level = table.concat({remodel_level, Formatting:format_remodel_items(remodel_to:remodel_blueprint(), remodel_to:remodel_catapult())}, " + ")+
+
+
+
+
+
+
+
+
+
Support remodel pairs
local remodel_to = ship:remodel_to()
local remodel_to = ship:remodel_to()
if remodel_to then
if remodel_to then
remodel_to = Ship(remodel_to)
local remodel_level
if remodel_to == remodel_from then
remodel_level = ship:remodel_to_level()
if ship:remodel_to_blueprint() or ship:remodel_to_catapult() then
remodel_level = table.concat({remodel_level, Formatting:format_remodel_items(ship:remodel_to_blueprint(), ship:remodel_to_catapult())}, " + ")
end
remodel_to = remodel_from
else
remodel_to = Ship(remodel_to)
remodel_level = remodel_to:remodel_level()
if remodel_to:remodel_blueprint() or remodel_to:remodel_catapult() then
remodel_level = table.concat({remodel_level, Formatting:format_remodel_items(remodel_to:remodel_blueprint(), remodel_to:remodel_catapult())}, " + ")
end
end
end
table.insert(build_info, self._remodel_to_label .. format{self._remodel_template, link = Formatting:fragment_link(tostring(remodel_to:api_id() or mw.ustring.lower(mw.ustring.gsub(remodel_to:name(), "%s+"))), self._fragment_prefix, remodel_to:name()), level = remodel_level})
table.insert(build_info, self._remodel_to_label .. format{self._remodel_template, link = Formatting:fragment_link(tostring(remodel_to:api_id() or mw.ustring.lower(mw.ustring.gsub(remodel_to:name(), "%s+"))), self._fragment_prefix, remodel_to:name()), level = remodel_level})