- 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 160:
Line 160:
+
Line 166:
Line 167:
+
+
+
+
Line 197:
Line 202:
− +
− ship._equipment = {} +
− end+
− for _, slot in ipairs(ship._equipment) do+
− if slot.equipment then+
− slot.equipment = Equipment(slot.equipment)
no edit summary
end
end
end
end
return nil
end
end
return #self._equipment
return #self._equipment
end
end
return nil
end
end
function ShipData:total_space()
function ShipData:total_space()
if not self._equipment then
return nil
end
local total_space = 0
local total_space = 0
local size
local size
ship._class = ShipClass(ship._class)
ship._class = ShipClass(ship._class)
end
end
if not ship._equipment then
if ship._equipment then
for _, slot in ipairs(ship._equipment) do
if slot.equipment then
slot.equipment = Equipment(slot.equipment)
end
end
end
end
end