- 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 283:
Line 283:
− +
− space = v["space"] +
− +
− +
− +
no edit summary
function ShipData:total_space()
function ShipData:total_space()
local total_space = 0
local total_space = 0
local space
local size
for _, v in ipairs(self._equipment) do
for _, v in ipairs(self._equipment) do
size = v["size"]
if space == nil then
if size == nil then
total_space = "??"
total_space = "??"
break
break
elseif space == false then
elseif size == false then
else
else
total_space = total_space + space
total_space = total_space + size
end
end
end
end