- 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 175:
Line 175:
− +
− local equipment, slot
− slot = ship:slot(i)+
− equipent = slot:equipment()
−
Fix equipment
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)]}))
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)