- 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 436:
Line 436:
− +
− local i = 0 +
− for _, v in ipairs(self._equipment) do+
− size = v.size+
− if size ~= false then
− i = i + 1
− end
− end
−
− return nil
Change slots logic to use _slots as override instead of slot size = false
function ShipData:slots()
function ShipData:slots()
if self._equipment then
if self._slots then
return self._slots
else
return self:slots_length()
return i
end
end
end
end