- 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 1:
Line 1:
+
Line 161:
Line 162:
− +
Line 175:
Line 176:
+
− +
+
+
Change to remodel level
local Ship = require('Module:Ship')
local Ship = require('Module:Ship')
local ResourceIcons = require('Module:ResourceIcons')
local StatIcons = require('Module:StatIcons')
local StatIcons = require('Module:StatIcons')
local format = require('Module:StringInterpolation').format
local format = require('Module:StringInterpolation').format
function ShipInfoKai:build_remodel_info(ship)
function ShipInfoKai:build_remodel_info(ship)
if ship:remodeled() then
if ship:remodeled() then
return mw.ustring.format("'''%s''' (%s%s)", ship:remodel_level(), ship:remodel_cost(), ship:remodel_blueprint(true) and ship:remodel_blueprint() or "")
return mw.ustring.format("'''Level %s''' (%s%s)", ship:remodel_level(), ship:remodel_cost(), ship:remodel_blueprint(true) and ship:remodel_blueprint() or "")
elseif ship:buildable() then
elseif ship:buildable() then
return ship:build_time()
return ship:build_time()
function ShipInfoKai:slot_details(ship)
function ShipInfoKai:slot_details(ship)
local slots = {}
local slots = {}
local equipment, slot
for i = 1, math.max(4, ship:slots()) do
for i = 1, math.max(4, ship:slots()) do
table.insert(slots, format(self._slot_template, {icon = ship:equipment_icon(i), equipment = ship:equipment(i), slot_size = ship:slot_size(i), color = self._equipment_rarity_map[ship:equipment_back(i)]}))
slot = ship:slot(i)
equipent = slot:equipment()
table.insert(slots, format{self._slot_template, icon = equipment:icon(), equipment = equipment:page(), slot_size = slot:size(), color = self._equipment_rarity_map[equipment:back()]})
end
end
return table.concat(slots)
return table.concat(slots)