• 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
Fix equipment
Line 175: Line 175:     
function ShipInfoKai:slot_details(ship)
 
function ShipInfoKai:slot_details(ship)
local slots = {}
+
local slots = {} local equipment, slot
local equipment, slot
   
for i = 1, math.max(4, ship:slots()) do
 
for i = 1, math.max(4, ship:slots()) do
slot = ship:slot(i)
+
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)]}))
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)
Anonymous user

Navigation menu